AO Smart Scalper – 5M Dynamic SL Edition📈 AO Signals with Fixed and Dynamic SL – Optimized for 5-Minute Charts 📉
This indicator is built for 5-minute timeframe trading, combining powerful momentum signals from the Awesome Oscillator (AO) with both Fixed and Dynamic Stop Loss (SL) levels to enhance trade management and risk control.
✅ Buy/Sell Signals:
The indicator generates clear BUY and SELL signals based on the AO crossing above or below the zero line, helping traders capture momentum shifts early.
🛑 Fixed Stop Loss:
Each trade signal comes with a Fixed SL, calculated based on the high (for shorts) or low (for longs) of the previous candle, with a customizable percentage offset. This SL is plotted with a red line, providing a clear initial risk level.
⚡ Dynamic Stop Loss: Continuous Presence, Strategic Use:
A secondary Dynamic SL line is plotted, which is continuously present on the chart. This dynamic level responds to market conditions and can serve as a trailing stop or key decision point.
💡 Recommended Use: It is recommended to actively start using the Dynamic SL once the trade has moved into profit. This allows protecting obtained profits and minimizing the risk of losses in case of a market reversal.
🛡️ Enhanced Dynamic Stop-Loss Strategy:
🔒 Initial Protection: Utilize the Fixed SL as the initial stop-loss, placed below relevant lows (for longs) or above relevant highs (for shorts), or as provided by the fixed SL indicator.
🛤️ Dynamic Tracking:
🟢 Long Trades: Once in profit, the Dynamic SL will dynamically adjust, moving upwards as higher lows are formed, effectively trailing the price and securing profits.
🔴 Short Trades: Conversely, in short trades, once in profit, the Dynamic SL will move downwards as lower highs are formed, protecting gains.
🔄 Alternatively the dynamic stop loss will follow the dynamic SL line provided by the indicator.
🚪 Exiting Trades: When the price crosses below the Dynamic SL line in a LONG trade, or above it in a SHORT trade, the recommended action is to exit the trade.
↩️ Re-entry Consideration: You may consider re-entering only if the price clearly returns above the Dynamic SL (for longs) or below it (for shorts).
⚠️ IMPORTANT - 5-Minute Strategy Guidance ⏱️
This tool is specifically optimized for the 5-minute timeframe. This approach helps filter out weak setups and maintain discipline in volatile market conditions.
✨ Additional Features:
👁️ Visual and editable SL levels
📊 200-period SMA for trend context
💻 Simple and effective interface for intraday trading setups
🎯 Ideal for traders seeking a clean, rule-based system that combines momentum entry signals with layered stop loss protection.
🔑 Key Changes:
It was emphasized that the Dynamic SL is always present, but its active use is recommended once the trade is in profit.
It was clarified the use of the Fixed SL, giving the option to use the one provided by the indicator, or to place it according to the price action.
Cari dalam skrip untuk "stop loss"
Democratic MultiAsset Strategy [BerlinCode42]Happy Trade,
Intro
Included Trade Concept
Included Indicators and Compare-Functions
Usage and Example
Settings Menu
Declaration for Tradingview House Rules on Script Publishing
Disclaimer
Conclusion
1. Intro
This is the first multi-asset strategy available on TradingView—a market breadth multi-asset trading strategy with integrated webhooks, backtesting capabilities, and essential strategy components like Take Profit, Stop Loss, Trailing, Hedging, Time & Session Filters, and Alerts.
How It Trades? At the start of each new bar, one asset from a set of eight is selected to go long or short. As long there is available cash and the selected asset meets the minimum criteria.
The selection process works through a voting system, similar to a democracy. Each asset is evaluated using up to five indicators that the user can choose. The asset with the highest overall voting score is picked for the trade. If no asset meets all criteria, no trade is executed, and the cash reserve remains untouched for future opportunities.
How to Set Up This Market Breadth Strategy:
Choose eight assets from the same market (e.g., cryptos or big tech stocks).
Select one to five indicators for the voting system.
Refine the strategy by adjusting Take Profit, Stop Loss, Hedging, Trailing, and Filters.
2. Voting as the included Trade Concept
The world of financial trading is filled with both risks and opportunities, and the key challenge is to identify the right opportunities, manage risks, and do both right on time.
There are countless indicators designed to spot opportunities and filter out risks, but no indicator is perfect—they only work statistically, hitting the right signals more often than the wrong ones.
The goal of this strategy is to increase the accuracy of these Indicators by:
Supervising a larger number of assets
Filtering out less promising opportunities
This is achieved through a voting system that compares indicator values across eight different assets. It doesn't just compare long trades—it also evaluates long vs. short positions to identify the most promising trade.
Why focus on one asset class? While you can randomly select assets from different asset classes, doing so prevents the algorithm from identifying the strongest asset within a single class. Think about, within one asset class there is often a major trend whereby different asset classes has not really such behavior.
And, you don’t necessarily need trading in multiple classes—this algorithm is designed to generate profits in both bullish and bearish markets. So when ever an asset class rise or fall the voting system ensure to jump on the strongest asset. So this focusing on one asset class is an integral part of this strategy. This all leads to more stable and robust trading results compared to handling each asset separately.
3. Included Indicators and Compare-Functions
You can choose from 17 different indicators, each offering different types of signals:
Some provide a directional signal
Some offer a simple on/off signal
Some provide both
Available Indicators: RSI, Stochastic RSI, MFI, Price, Volume, Volume Oscillator, Pressure, Bilson Gann Trend, Confluence, TDI, SMA, EMA, WMA, HMA, VWAP, ZLMA, T3MA
However, these indicators alone do not generate trade signals. To do so, they must be compared with thresholds or other indicators using specific comparison functions.
Example – RSI as a Trade Signal. The RSI provides a value between 0 and 100. A common interpretation is:
RSI over 80 → Signal to go short or exit a long trade
RSI under 20 → Signal to go long or exit a short trade
Here, two comparison functions and two thresholds are used to determine trade signals.
Below is the full set of available comparison functions, where: I represents the indicator’s value and A represents the comparator’s value.
I < A if I smaller A then trade signal
I > A if I bigger A then trade signal
I = A if I equal to A then trade signal
I != A if I not equal to A then trade signal
A <> B if I bigger A and I smaller B then trade signal
A >< B if I smaller A then long trade signal or if I bigger B then short trade signal
Image 1
In Image 1, you can see one of five input sections, where you define an indicator along with its function, comparator, and constants. For our RSI example, we select:
Indicator: RSI
Function: >< (greater/less than)
Comparator: Constant
Constants: A = 20, B = 80
With these settings a go short signal is triggered when RSI crosses above 80. And a go long signal is triggered when RSI crosses below 20.
Relative Strength Indicator: The RSI from the public TradingView library provides a directional trade signal. You can adjust the price source and period length in the indicator settings.
Stochastic Relative Strength Indicator: As above the Stoch RSI offers a trade signal with direction. It is calculated out of the RSI, the stochastic derivation and the SMA from the Tradingview library. You can set the in-going price source and the period length for the RSI, for the Stochastic Derivation and for the SMA as blurring in the Indicator settings section.
Money Flow Indicator: As above the MFI from the public Tradingview library offers a trade signal with direction. You can set the in-going price source and the period length in the Indicator settings section.
Price: The Price as Indicator is as simple as it can be. You can chose Open, High, Low or Close or combinations of them like HLC3 or even you can import an external Indicator. The absolute price or value can later be used to generate a trade signals when certain constant thresholds or other indicators signals are crossed.
Volume: Similar as above the Volume as Indicator offers the average volume as absolute value. You can set the period length for the smoothing and you can chose where it is presented in the base currency $ or is the other. For example the trade pair BTCUSD you can chose to present the value in $ or in BTC.
Volume Oscillator: The Volume Oscillator Indicator offers a value in the range of . Whereby a value close to 0 means that the volume is very low. A value around 1 means the volume is same high as before and Values higher as 1 means the volume is bigger then before. You can set the period length for the smoothing and you can chose where it is presented in the base currency $ or is the other. For example the trade pair BTCUSD you can chose to present the value in $ or in BTC.
Pressure Indicator: The Pressure is an adapted version of LazyBear's script (Squeeze Momentum Indicator) Pressure is a Filter that highlight bars before a bigger price move in any direction. The result are integer numbers between 0 and 4 whereby 0 means no bigger price move excepted, while 4 means huge price move expected. You can set the in-going price source and the period length in the Indicator settings section.
Bilson Gann Trend: The Bilson Gann Trend Indicator is a specific re-implementation of the widely known Bilson Gann Count Algorithm to detect Highs and Lows. On base of the last four Highs and Lows a trend direction can be calculated. It is based on 2 rules to confirm a local pivot candidate. When a local pivot candidate is confirmed, let it be a High then it looks for Lows to confirm. The result range is whereby -1 means down trend, 1 means uptrend and 0 sideways.
Confluence: The Confluence Indicator is a simplified version of Dale Legan's "Confluence" indicator written by Gary Fritz. It uses five SMAs with different periods lengths. Whereby the faster SMA get compared with the (slower) SMA with the next higher period lengths. Is the faster SMA smaller then the slower SMA then -1, otherwise +1. This is done with all SMAs and the final sum range between . Whereby values around 0 means price is going side way, Crossing under 0 means trend change from bull to bear. Is the value>2 means a strong bull trend and <-2 a strong bear trend.
Trades Dynamic Index: The TDI is an adapted version from the "Traders Dynamic Index" of LazyBear. The range of the result is whereby 2 means Top goShort, -2 means Bottom goLong, 0 is neutral, 1 is up trend, -1 is down trend.
Simple Moving Average: The SMA is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Exponential Moving Average: The EMA as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Weighted Moving Average: The WMA as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Hull Moving Average: HMA as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Volume Weighted Average Price: The VWAP as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source in the Indicator settings section.
Zero Lag Moving Average: The ZLMA by John Ehlers and Ric Way describe in their paper: www.mesasoftware.com
As the other moving averages you can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
T3 Moving Average: The T3MA is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source, the period length and a factor in the Indicator settings section. Keep this factor at 1 and the T3MA swing in the same range as the input. Bigger 1 and it swings over. Factors close to 0 and the T3MA becomes a center line.
All MA's following the price. The function to compare any MA Indicators would be < or > to generate a trade direction. An example follows in the next section.
4. Example and Usage
In this section, you see how to set up the strategy using a simple example. This example was intentionally chosen at random and has not undergone any iterations to refine the trade results.
We use the RSI as the trade signal indicator and apply a filter using a combination of two moving averages (MAs). The faster MA is an EMA, while the slower MA is an SMA. By comparing these two MAs, we determine a trend direction. If the faster MA is above the slower MA the trend is upwards etc. This trend direction can then be used for filtering trades.
The strategy follows these rules:
If the RSI is below 20, a buy signal is generated.
If the RSI is above 80, a sell signal is generated.
However, this RSI trade signal is filtered so that a trade is only given the maximum voting weight if the RSI trade direction aligns with the trend direction determined by the MA filter.
So first, you need to add your chosen assets or simply keep the default ones. In Image 2, you can see one of the eight asset input sections.
Image 2
This strategy offers some general trade settings that apply equally to all assets and some asset-specific settings. This distinction is necessary because some assets have higher volatility than others, requiring asset-specific Take Profit and Stop Loss levels.
Once you have made your selections, proceed to the Indicators and Compare Functions for the voting. Image 3 shows an example of this setup.
Image 3
Later on go to the Indicator specific settings shown in Image 4 to refine the trade results.
Image 4
For refine the trade results take also a look on the result summary table, development of capital plot, on the list of closed and open trades and screener table shown in Image 5.
Image 5
To locate any trade for any asset in the chronological and scroll-able trade list, each trade is marked with a label:
An opening label displaying the trade direction, ticker ID, trade number, invested amount, and remaining cash reserves.
A closing label showing the closing reason, ticker ID, trade number, trade profit (%), trade revenue ($), and updated cash reserves.
Additionally: a green line marks each Take Profit level. An orange line indicates the (trailing) Stop Loss.
The summary table in the bottom-left corner provides insights into how effective the trade strategy is. By analyzing the trade list, you can identify trades that should be avoided.
To find those bad trades on the chart, use the trade number or timestamp. With replay mode, you can go back in time to review a specific trade in detail.
Image 6
In Image 6, you can see an example where replay mode and the start time filter are used to display specific trades within a narrow time range. By identifying a large number of bad trades, you may recognize patterns and formulate conditions to avoid them in the future.
This is the backtesting tool that allows you to develop and refine your trading strategy continuously. With each iteration—from general adjustments to detailed optimizations—you can use these tools to improve your strategy. You can:
Add other indicators with trade signals and direction
Add more indicators signals as filter
Adjust the settings of your indicators to optimize results
Configure key strategy settings, such as Time and Session Filters, Stop Loss, Take Profit, and more
By doing so, you can identify a profitable strategy and its optimal settings.
5. Settings Menu
In the settings menu you will find the following high-lighted sections. Most of the settings have a i mark on their right side. Move over it with the cursor to read specific explanation.
Backtest Results: Here you can decide about visibility of the trade list, of the Screener Table and of the Results Summary. And the colors for bullish, side ways, bearish and no signal. Go above and see Image 5.
Time Filter: You can set a Start time or deactivate it by leave it unhooked. The same with End Time and Duration Days . Duration Days can also count from End time in case you deactivate Start time.
Session Filter: Here, you can chose to activate trading on a weekly basis, specifying which days of the week trading is allowed and which are excluded. Additionally, you can configure trading on a daily basis, setting the start and end times for when trades are permitted. If activated, no new trades will be initiated outside the defined times and sessions.
Trade Logic: Here you can set an extra time frame for all indicators. You can enable Longs or Shorts or both trades.
The min Criteria percentage setting defines the minimum number of voices an asset has to get to be traded. So if you set this to 50% or less also weak winners of the voting get traded while 100% means that the winner of the voting has to get all possible voices.
Additionally, you have the option to delay entry signals. This feature is particularly useful when trade signals exhibit noise and require smoothing.
Enable Trailing Stop and force the strategy to trade only at bar closing. Other-ways the strategy trade intrabar, so when ever a voting present an asset to trade, it will send the alert and the webhooks.
The Hedging is basic as shown in the following Image 7 and serves as a catch if price moves fast in the wrong direction. You can activate a hedging mechanism, which opens a trade in the opposite direction if the price moves x% against the entry price. If both the Stop Loss and Hedging are triggered within the same bar, the hedging action will always take precedence.
Image 6
Indicators to use for Trade Signal Generating: Here you chose the Indicators and their Compare Function for the Voting . Any activated asset will get their indicator valuation which get compared over all assets. The asset with the highest valuation is elected for the trade as long free cash is present and as long the minimum criteria are met.
The Screener Table will show all indicators results of the last bar of all assets. Those indicator values which met the threshold get a background color to high light it. Green for bullish, red for bearish and orange for trade signals without direction. If you chose an Indicator here but without any compare function it will show also their results but with just gray background.
Indicator Settings: here you can setup the indicator specific settings. for deeper insights see 3. Included Indicators and Compare-Functions .
Assets, TP & SL Settings: Asset specific settings. Chose here the TickerID of all Assets you wanna trade. Take Profit 1&2 set the target prices of any trade in relation to the entry price. The Take Profit 1 exit a part of the position defined by the quantity value. Stop Loss set the price to step out when a trade goes the wrong direction.
Invest Settings: Here, you can set the initial amount of cash to start with. The Quantity Percentage determines how much of the available cash is allocated to each trade, while the Fee percentage specifies the trading fee applied to both opening and closing positions.
Webhooks: Here, you configure the License ID and the Comment . This is particularly useful if you plan to use multiple instances of the script, ensuring the webhooks target the correct positions. The Take Profit and Stop Loss values are displayed as prices.
6. Declaration for Tradingview House Rules on Script Publishing
The unique feature of this Democratic Multi-Asset Strategy is its ability to trade multiple assets simultaneously. Equipped with a set of different standard Indicators, it's new democratic Voting System does more robust trading decisions compared to single-asset. Interchangeable Indicators and customizable strategy settings allowing for a wide range of trading strategies.
This script is closed-source and invite-only to support and compensate for over a year of development work. Unlike other single asset strategies, this one cannot use TradingView's strategy functions. Instead, it is designed as an indicator.
7. Disclaimer
Trading is risky, and traders do lose money, eventually all. This script is for informational and educational purposes only. All content should be considered hypothetical, selected post-factum and is not to be construed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results. Using this script on your own risk. This script may have bugs and I declare don't be responsible for any losses.
8. Conclusion
Now it’s your turn! Chose an asset class and pick 8 of them and chose some indicators to see the trading results of this democratic voting system. Refine your multi-asset strategy to favorable settings. Once you find a promising configuration, you can set up alerts to send webhooks directly. Configure all parameters, test and validate them in paper trading, and if results align with your expectations, you even can deploy this script as your trading bit.
Cheers
Altcoins Screener [SwissAlgo]Introduction: The Altcoins Screener at a Glance
The Altcoins Screener is a cryptocurrency analysis tool designed to provide an overview of potential trading opportunities across multiple crypto coins/tokens and categories. By combining technical analysis, price action assessment, and social metrics (via LunarCrush data), it presents market information and trading signals for a broad range of altcoins (approx. 300 USDT.P pairs of 9 crypto categories).
The screener is designed to consolidate market information onto a single chart , aiming to streamline the analysis of market conditions. It provides a consolidated market overview, which can simplify the assessment of market conditions, compared to monitoring individual charts with several layered indicators.
Key Features:
🔹 Multi-category analysis covering 300 crypto pairs of 9 categories on a single chart (Layer 1 & Top Coins, Layer2 & Scaling, Defi & Landing, Gaming & Metaverse, AI & Data, Exchanges & Trading, NFT & Social, Memes & Community, Other, User's Custom Portfolio).
🔹 Technical analysis with trade signals (Long/Short) based on an aggregated view of technical and social data points
🔹 Social sentiment integration through LunarCrush metrics (GalaxyScore, AltRank, Social Sentiment)
🔹 Real-time market scanning provides automated alerts when market conditions for specified coins/tokens potentially change.
🔹 Custom watchlist support for personalized monitoring (users can define a custom category containing a set of specific cryptocurrencies, i.e. own portfolio).
The screener presents data in a table format, using color-coded indicators to aid visual analysis. Detailed technical information is also provided. The assessments/trade signals provided by this indicator should be considered as one input among many when forming your trading strategy.
--------------------------------------
What It Does
The Altcoins Screener is a cryptocurrency analysis tool that offers:
Data Display and Analysis (Technical/Social):
🔹 Technical Metrics
* Technical Raw Data : Displays raw values for a range of technical indicators, including RSI, Stochastic RSI, DMI/ADX, RVI, ATR, OBV, and Hull Moving Averages (including their recent trends and potential significance).
Detailed view of key technical indicators, for further analysis and evaluation:
* Technical Analysis (Summary) : Provides a summarized interpretation of technical conditions based on aggregated parameters:
* Price Action
* Trend
* Momentum
* Volatility
* Volume
Summarized view of confluences for potential long/short bias:
🔹 Social Metrics (LunarCrush) : Presents data from LunarCrush®, including Galaxy Score®, AltRank®, and Social Sentiment® (including their recent trends and potential significance).
Lunarcrush data for the top 10 coins for each crypto category:
🔹 PVSRA (Price Volume & Market Makers Activity) Candles : Shows special candles highlighting potential market maker activity and volume anomalies, helping identify possible manipulation zones (including imbalance zones, i.e. price areas that market makers may revisit)
--------------------------------------
Key Features:
Automated trade signals (Long/Short) are generated based on algorithmic calculations and signal confidence levels across technical and social data points. These signals are intended to be used as one component of a broader trading strategy.
Custom sensitivity settings allow users to adjust the analysis timeframe (options: 1D, 2D, or 1W). Higher timeframes may provide a broader perspective, while the 2D setting is the default configuration.
Multi-category analysis covering a selection of approximately 300 crypto pairs across 9 predefined crypto categories.
Custom symbol selection: Users can define a custom list of up to 10 symbols for focused monitoring.
Automated Alerts to track potential trend changes across crypto categories (Long to Short to Neutral, or vice versa)
Visual Interface:
Organized table display with color-coded indicators to aid interpretation.
Clear and efficient format for scanning market information.
--------------------------------------
Target Audience
🔹 The screener is designed for cryptocurrency traders who:
Need to efficiently monitor multiple USDT perpetual futures markets
Use technical analysis in their trading decisions
Want to track sector-wide movements across crypto categories
🔹 Suitable for different trading styles:
Scalpers requiring quick market assessment
Swing traders analyzing multi-day trends
Position traders monitoring longer-term setups
The color-coded interface makes it accessible for intermediate traders while providing detailed metrics for advanced users. A basic understanding of technical analysis and crypto trading is recommended.
--------------------------------------
How It Works
The Altcoins Screener evaluates cryptocurrencies through a multi-layered analysis:
🔹 Core Analysis Components
Each parameter combines multiple indicators for comprehensive evaluation:
Price Action
EMA crossovers and momentum
Support/resistance zones
Candlestick patterns
Trend
Hull Moving Average system
DMI/ADX trend strength
Multi-timeframe confirmation
Momentum
RSI/Stochastic RSI readings
MACD convergence/divergence
Oscillator confirmations
Volatility
RVI/ATR measurements
Bollinger Bands behavior
Historical volatility trends
Volume
OBV trend analysis
Volume/price correlations
Volume profile assessment
🔹 Signal Generation Process
1. Real-time data collection across timeframes
2. Weighted indicator calculations
3. Parameter aggregation and analysis
4. Signal strength determination
5. Color-coding and alert generation
--------------------------------------
How to Use
🔹 Initial Setup:
Add the indicator to a chart (use the 1D timeframe)
Select your preferred crypto category or create a custom list
Choose between Technical Analysis or Technical Metrics view
Set data sensitivity based on your trading style
🔹 Using the Technical Analysis View:
Monitor color-coded dots for quick market assessment
Green: bullish conditions
Red: bearish conditions
Gray: neutral conditions
Check the "Trade Signal" column for potential Long/Short entries signaled by confluences among technical and/or social data points
🔹 Using the Technical Metrics View:
Review detailed numerical values
Monitor slopes (↑↓ arrows) for the most recent trend direction of each data point
Watch for pivotal points (highlighted cells): these are data points that suggest potential trend reversals
Focus on the confluence of multiple indicators
The technical metrics view corroborates the conclusions shown in the Technical Analysis View, providing more details about some critical data points.
🔹 Alert Configuration:
Enable Technical Alerts for signal notifications (which coin/token seems most suited for Long or Short trades, and which coin/token is in a neutral/uncertain state for trading = "No Trade")
Configure alert conditions based on trading style
Set timeframe-appropriate sensitivity
Monitor alert messages for trade signals
Instructions on how to set alerts are provided in the script (enable "Signals Setup Instructions" in User Interface to get a step-by-step guide about setting up alerts)
Best Practices:
Confirm signals across multiple timeframes
Use appropriate sensitivity for your trading style
Monitor multiple categories for sector rotation
Combine signals with your trading strategy
Verify signals with price action confirmation and deep dive into the charts of your potential targets
--------------------------------------
About the Settings
🔹 Crypto Category Selection
Layer 1 & Major: Top market cap coins (BTC, ETH, XRP,...), established protocols
Layer 2 & Scaling: ETH L2s, scaling solutions
DeFi & Lending: Decentralized finance protocols
Gaming & Metaverse: Gaming and virtual world tokens
AI & Data: Artificial intelligence and data projects
Exchange & Trading: Exchange tokens, trading protocols
NFT & Social: NFT platforms, social tokens
Memes & Community: Community-driven tokens
Others & Misc: Other categories
Custom Category: User-defined list (up to 10 symbols)
Data Type Options
Technical Analysis: Color-coded summary view
Technical Metrics: Detailed numerical values of some key technical data points
Sensitivity Settings
Higher: Shorter timeframe, more frequent signals
Default: Balanced timeframe, standard signals
Lower: Longer timeframe, stronger signals
Alert Settings
Technical Alerts: Trade signal notifications
Data Timeframe: Minimum 1D required
Theme: Dark/Light mode options
Note: All analysis is performed on USDT Perpetual Futures pairs from Binance
--------------------------------------
FAQ
Q: Does the screener work on other exchanges besides Binance?
A: No, it's designed specifically for Binance USDT Perpetual Futures pairs. Binance offers the highest liquidity and trading volume in the crypto derivatives market, making it ideal for technical analysis. The extensive range of trading pairs and reliable data streams help ensure more accurate signals and analysis. Using a single high-liquidity exchange also helps avoid inconsistencies that could arise from aggregating data across multiple platforms with varying liquidity levels.
Q: What's the minimum timeframe required?
A: The screener requires a minimum 1D (daily) timeframe. This requirement ensures that the technical analysis has sufficient data points for reliable signal generation. Lower timeframes can produce more noise and false signals, while daily timeframes help filter out market noise and identify stronger trends.
Q: Why are some social metrics showing "NaN"?
A: "NaN" (Not a Number) appears when cryptocurrencies don't have associated LunarCrush data. This typically occurs with newer tokens or those with lower market caps. The technical analysis remains fully functional regardless of social metric availability, as these are complementary data points.
Q: How often are signals updated?
A: Signals update with each new candle on the selected timeframe (1D, 2D, or 1W). For example, on the default 2D setting, signals are recalculated every two days as new candles form. This helps reduce noise while maintaining timely analysis of market conditions.
Q: Can I add spot trading pairs?
A: No, the screener is optimized for Binance USDT perpetual futures pairs for data consistency and analysis purposes. While spot and perpetual prices typically align closely due to arbitrage, using a single data source (Binance) and contract type (USDT perpetual) ensures uniform data quality and analysis across all pairs. This standardization helps maintain reliable technical analysis and signal generation.
Q: How many coins can I add to my custom list?
A: Users can add up to 10 custom symbols to their watchlist. This limit is designed to maintain optimal performance while allowing focused monitoring of specific assets. The custom list complements the predefined categories that cover over 300 pairs.
Q: What determines signal confidence levels?
A: Signal confidence is calculated through a weighted algorithm that considers multiple factors: trend strength (Hull MA, DMI/ADX), momentum indicators (RSI, SRSI), volatility measurements (RVI, ATR, BB), volume analysis (OBV, volume trends), and price action patterns. Higher confidence levels indicate stronger alignment across these factors.
Q: Are signals guaranteed to work?
A: No. Signals are analytical tools based on historical and current market data, not guaranteed predictions. They should be used as one component of a comprehensive trading strategy that includes proper risk management, position sizing, and additional confirmation factors. Past performance does not guarantee future results.
Q: Why does the screener need higher timeframes?
A: Higher timeframes (1D minimum) provide several benefits: reduced market noise, more reliable technical signals, better trend identification, and lower likelihood of false signals. They also align better with institutional trading patterns and allow for a more thorough analysis of market conditions across multiple indicators.
--------------------------------------
Conclusion
The Altcoins Screener is a comprehensive crypto market analysis tool that:
Scans 300+ cryptocurrencies across 9 sectors on a single chart
Combines technical indicators and social metrics for signal generation
Identifies potential trading opportunities through color-coded visuals
Saves time by eliminating the need to monitor multiple charts
The tool is suited for:
Market overview and sector rotation analysis
Quick assessment of market conditions
Technical and social sentiment tracking
Systematic trading approach with alerts
Use this screener with caution and as a complement to any other tool you use to define your trading strategy.
--------------------------------------
Disclaimer
This indicator is for informational and educational purposes only:
Not financial advice: This indicator should not be considered investment advice.
No guarantee of accuracy: The indicator's calculations and signals are based on specific algorithms and data sources, but accuracy cannot be guaranteed. Market conditions can change rapidly.
Past performance is not predictive: Past performance of the indicator's signals or any specific asset is not indicative of future results.
Substantial risk of loss: Trading cryptocurrencies involves a substantial risk of loss. You can lose money trading these assets.
User responsibility: Users are solely responsible for their own trading decisions and should exercise caution.
Independent research required: Always conduct thorough independent research (DYOR) before making any trading decisions.
Technical analysis is one of many tools: Technical analysis, including the output of this indicator, is just one tool among many and should not be relied upon exclusively.
Risk management is essential: Use proper risk management techniques, including position sizing and stop-loss orders.
Comprehensive strategy: Use this tool as part of a comprehensive trading strategy, not as a standalone solution.
No liability for trading results: The Author assumes no responsibility or liability for any trading results or losses incurred as a result of using this indicator.
No TradingView affiliation: SwissAlgo is an independent entity and is not affiliated with or endorsed by TradingView.
LunarCrush data: The indicator utilizes publicly available data from LunarCrush. LunarCrush data and trademarks are the property of LunarCrush.
Consult a financial advisor: Consult with a qualified financial advisor before making any investment decisions.
By using this indicator, you acknowledge and agree to these terms. If you do not agree with these terms, please refrain from using this indicator.
Strategy Development Environment [BerlinCode42]Happy Trade,
Intro
What is New
Algebraic/Boolean Equation
Instruction Set for The Algebraic/Boolean Equation
Example
Usage
Settings Menu
Declaration for Tradingview House Rules on Script Publishing
Disclaimer
Conclusion
1. Intro
This is a rich equipped fork of my previous "Backtest any Indicator v5". And serves as the fitting backtester and trade strategy creation tool for my upcoming ANN Indicators (artificial neural network).
As the previous version this script has no trade signal generating code. The trade signals comes in by the five user settable input slots where the user plug-in external indicators. The final trade siganls go long etc are defined by a algebraic/boolean equation typed in as text in 4 terminals as shown in Image 0 . With this algebraic/boolean equations input the user can setup any trade logic as complex and fast and easy as never seen before here on TradingView.
Image 0
2. What is new
Input algebraic/boolean equations in text-form for go long, go short, exit long & exit short
Five input slots for external indicator signals
Equation tester
User settable signal delay for enter and exit trades
User selectable alternating trades filter
User settable exit long = enter short
Intrabar or trade only on bar closing
Time filter with duration input
User settable UTC Adjustment
Long and short trades possible
Two Take Profits with quantity setting
Trailing Stop
Webhook connection
3. Algebraic/Boolean Equation
This is where the magic happens. Unlike other backtesters that rely on drop-down menus to define trade signal equations—thus limiting the number of input signals and the complexity of logic—this script uses a string interpreter to solve equations. With this, you can develop your trade logic equations and add signals or conditions simply by writing them down in algebraic/boolean form.
The instruction set for this interpreter includes not only external input signals but also several internal values. These include BarTime, BarIndex, Open, High, Low, Close, True Range, Minimal Tick, Volume, and a signal that indicates whether there is an open trade (long, short, or none). You can also reference the values of past bars for all these inputs and, of course, use constant values in your equations. There is a sad limitation: Only one past bar value per equation is practicable. If you use more, errors can occur. It seems to be caused by the pipe line architecture of the parallel computing. In any attempt to solve this issue an older function call result was hand over.
The implemented functions cover a wide range of algebraic and boolean operations. A boolean "true" is represented by all values greater than zero, while "false" is represented by zero or values less than zero.
4. Instruction set for the Algebraic/Boolean Equation
There are functions that accept either two input values or one input value. The general form is (XandY) or (notX), where X and Y can be any input slot, predefined value, constant, or another sub-equation. Functions are always written in lowercase, while input slots and predefined values use uppercase letters.
Each sub-equation must be enclosed in parentheses, e.g., (A+B). Without proper use of parentheses, the interpreter cannot determine which function to calculate first. Negative constants must be expressed by subtracting from zero (e.g., (0-3.14)), so careful attention is required.
Here are some examples that demonstrate both incorrect and correct notations:
incorrect correct
(A+B*C) (A+(B*C))
(A+B+D+E) (A+(B+(D+E)))
(-20>A) ((0-20)>A)
(A*-B) (A*(0-B))
(AnotB) (Aand(notB))
ABS(a-b) (abs(A-B))
The correct usage ensures the interpreter calculates in the intended order.
And here comes the complete Instruction Set:
Addition: (A+B)
Subtraction: (A-B)
Multiplication: (A*B)
Division: (A/B)
Absolut value: (absA)
Power of: (A^B)
Natural Logarithm: (logA)
Lowest value of Low of last x bars: (lotx)
Highest value of High of last x bars: (hotx)
Modulo, Remainder of a Division: (A%B)
Round: (rndA)
round to ceil: (ceiA)
Round to floor: (floA)
Round to next minimal tick: (mitA)
EMA of A of last 3 bars: (e03A)
EMA of A of last 7 bars: (e07A)
EMA of A of last 10 bars: (e10A)
EMA of A of last 20 bars: (e20A)
EMA of A of last 50 bars: (e50A)
Smaller then: (AB)
Equal to: (A==B)
Unequal to: (A!=B)
And: (AandB)
Or: (AorB)
Exclusive Or: (AxorB)
Not: (notA)
Past bar value: (A ) ,whereby x can be 1,2,3,...,barIndex-1
Bar time: (T)
Bar index: (I)
Opening Price of Bar: (O)
Highest Price of Bar: (H)
Lowest Price of Bar: (L)
Closing Price of Bar: (C)
Min tick value for the current symbol: (K)
Trade Volume: (V)
True Range: (R)
Is Money invested: (M) ,Long position: M=1,
Short position: M=-1,
No position: M=0
Reminder: if you wanna replace A or B above don't forget the parentheses. So if you have (logA) and wanna replace A with D+F so the correct replacement would be (log(D+F)).
In the following there are some examples of popular bar patterns and useful filters:
Doji: ((abs(O-C))<(10*K))and((H-L)>(100*K))
green Hammer: (((H-C)<(5000*K))and(((O-L)/2)>(abs(O-C)))
Up trend: (C>(e10H))
Down trend: (C<(e10L))
cool down 7 bars: (( any buy condition )and((e07(absM))==0))
possible Pivot High: (H==(hot30))and((CC))
possible Pivot Low: (L==(lot30))and((C>H )or(O0)), goShort ((A>0)and((A )<0)), Enter Signal delay=0, Exit Signal delay=0, Alternate Trades=true
take profit 1 =0.4% (30%), take profit 2 =0.7%, trailing stop loss=0.2%, intrabar, start capital=1000$, qty=5%, fee=0.05%, no Session Filter
Image 1
6. Usage
First you need to attach some signals from external Indicators. In the example above we use the Stochastic RSI indicator from TradingView. Load the Stochastic RSI indicator to the chart. Then you go to the settings menu of this script, choose in the drop-down menu of Input A the signal .
In case you wanna use a signal which is not in the drop-down menu of Input A do the following:
1) You need to know the name of the boolean (or integer) variable of your indicator which hold the desired signal. Lets say that this boolean variable is called BUY. If this BUY variable is not plotted on the chart you simply add the following code line at the end of your pine script.
For boolean (true/false) BUY variables use this:
plot(BUY ? 1:0,'Your buy condition hold in that variable BUY',display = display.data_window)
And in case your script's BUY variable is an integer or float then use instate the following code line:
plot(BUY ,'Your buy condition hold in that variable BUY',display = display.data_window)
2) Probably the name of this BUY variable in your indicator is not BUY. Simply replace in the code line above the BUY with the name of your script's trade condition variable.
3) Do the same procedure for your SELL variable. Then save your changed Indicator script.
4) Then add the changed Indicator script from step before and this backtester script to the chart ...
5) and go to the settings of it. Choose under "Settings -> Input A " your Indicator. So in the example above choose .
The form is usually: ' : BUY'. Then you see something like Image 1
6) Decide about each trade logic for Go Long and Go Short . In this Example we use for GoLong if "Stoch RSI: K" is smaller then 20. The "Stoch RSI: K" we already loaded it in input A. So we set under Go Long (A<20) and set Enter Signal Delay to 0.
Now we setup Go Short if "Stoch RSI: K" is bigger then 80. So we set under Go Short A>80. Enter Signal Delay is already set.
7) For the Exit conditions you can choose (trailing) Stop loss or Take Profit or Exit by Indicator Signal. What ever comes first triggers the exit. If you like to use an EMA Indicator for the Exit by Indicator just load it in a free input slot B, D, E, F or use the inbuild EMA. For this example we use the inbuild EMA of the last 7 values of close. It is called by the following equation: (e07C). So to exit a long trade when the close price crossunder this EMA you have to type in Exit Long ((e07C)>C). For exit a short trade enter in Exit Short ((e07C)<C).
You can choose detailed time- and session filters. You can setup two take profit levels with quantity and stop loss, trailing, initial capital, quantity per trade and set the exchange fees. You get an overall result table and even a detailed, scroll-able table with all trades.
Image 2
In the Image 2 you see the provided info tables about all Trades and the Result Summary. Further more every trade is marked by a background color, labels and levels. An opening Label with the trade direction and trade number. A closing Label again with the trade number, the trade profit in %, the trade gain in $ and the total amount of $ after all past trades. A green line for each take profit levels and an orange line for the (trail) stop loss. This summary table down left gives you an insign about how good or not so good the trade strategy is and with the trade list you can find those trade which should be avoided. Found those bad trades on the chart by the time or trade number. By seeing a big number of bad trades you may find a pattern and can formulate conditions to avoid those bad trades. Those new conditions you can easily add to the equations for enter or exit trades.
Now you have a backtest with the oppotunity to develope and envolve your trading strategy more and more. And for any iteration from general to detailed you can do it with this backtester. You can add more and more filter signals or may change the setting of your Indicator to the best results and setup the following strategy settings like Time- and Session Filter, Stop Loss, Take Profit etc. With it you find a profitable strategy and it's settings.
7. Settings Menu
In the settings menu you will find the following high-lighted sections. Most of the settings have a attention mark on their right side. Move over it with the cursor to read specific explanation.
Input Signals: This are five input slots A, B, D, E & F which you can load up with your preferred Indicators.
Algebraic Equation for the Trade Signals: Here you setup the definitions for Go Long , Go Short , Ex Long & Ex Short . As shown in Image 3 you can combine the input slots A, B, D, E, F with predefined Variables O, H, L, C, T, I, V, K, M, R or any constant value with the in-build function in the instruction set.
Image 3
Additionally, you have the option to delay entry and exit signals. This feature is particularly useful when trade signals exhibit noise and require smoothing.
You can also enable the script to perform alternating trading . In this mode, trades alternate sequentially—after a long trade, a short trade follows, and then another long trade, and so on.
Image 4
As shown in Image 4 , you can configure the script so that an "exit by signal" also acts as the next entry in the opposite trade direction. To enable this, check the option Exit = Enter Next and set the exit condition as the opposite of the entry condition. With this setting, only one occurrence of the signal is needed to trigger both the exit and the new entry, making the transition seamless.
Equation Tester: Each equation is assigned a checkmark and a color. Activate one like in Image 5 and the chart will highlight bars with a colored background where the corresponding equation result is greater than zero (interpreted as true). At the last bar, a label is displayed showing each equation’s result value. This feature allows you to build your equations and test sub-equations to ensure their results are correct.
Image 5
Backtest Results: Check mark the List of Trades to see any single trade with their stats. If there are more trades than can fit in the list, you can scroll down by decreasing the Scroll value.
Timezone Adjustment: In case you wanna use an Chart-UTC that differs from the time scale you can activate Timezone Adjustment . Then you have to setup your location UTC correctly! The Exchange UTC will be set in most cases automatically. Known Exchanges include Amsterdam, Chicago, New_York, Los_Angeles, Calcutta, Colombo, Moscow, St_Petersburg, Tokyo, Shanghai, Hongkong, Berlin, London, Paris, Madrid. Only if you have other exchanges you need to setup it by hand.
Time Filter: You can set a Start time or deactivate it by leave it unhooked. The same with End Time and Duration Days . Duration Days can also count from End time in case you deactivate Start time.
Session Filter: Here, you can choose to activate trading on a weekly basis, specifying which days of the week trading is allowed and which are excluded. Additionally, you can configure trading on a daily basis, setting the start and end times for when trades are permitted. If activated, no new trades will be initiated outside the defined times and sessions.
Long & Short: Here you can enable Longs or Shorts or both trades.
TP & SL Settings: Take Profit 1&2 set the target prices of any trade in relation to the entry price. The TP1 exit a part of the position defined by the quantity value. Stop Loss set the price to step out when a trade goes the wrong direction. You can activate also a trailing SL.
Additionally, you can specify whether trades should be executed intrabar or at the bar's closing.
Hedging: The Hedging is basic as shown in the following Image 6 and serves as a catch if price moves fast in the wrong direction.
Image 6
You can activate a hedging mechanism, which opens a trade in the opposite direction if the price moves x% against the entry price. If both the Stop Loss and Hedging are triggered within the same bar, the hedging action will always take precedence.
Invest Settings: Here, you can set the initial amount of cash to start with. The Quantity Percentage determines how much of the available cash is allocated to each trade, while the Fee Percentage specifies the trading fee applied to both opening and closing positions.
Webhooks: Here, you configure the License ID and the Comment. This is particularly useful if you plan to use multiple instances of the script, ensuring the webhooks target the correct positions. The Take Profit and Stop Loss values are displayed as prices.
8. Declaration for Tradingview House Rules on Script Publishing
This Backtester also serves as Strategy Development Tool by offering the user a fast and easy opportunity to test, enhance and manipulate the definitions for enter and exit trades. The unique feature "algebraic/boolean equation input" provides users with a significant edge over other backtest scripts. Unlike any other backtesting tool available with few drop-down menus for enter the equation, this script allows users to define an extensive range of trade equation definitions without setup of numerous specific parameters. This is reached by four terminals where the user type in the equation as text. Those equations in text-form are send intern to a context-depending touring machine that interprets the string. So with this tool, users can implement their trading ideas—even those involving complex definitions for trade entries and exits based on huge number of variables and indicators—without hiring a developer.
This script is closed-source and invite-only to support and compensate for over a year of development work. Unlike traditional backtest scripts, this one does not rely on TradingView's strategy functions. Instead, it is designed as an indicator, utilizing TradingView's "Indicator-on-Indicator" functionality.
9. Disclaimer
Trading is risky, and traders do lose money, eventually all. This script is for informational and educational purposes only. All content should be considered hypothetical, selected post-factum to demonstrate the upcoming ANN scripts and is not to be construed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results. Using this script on your own risk. This script may have bugs and I declare don't be responsible for any losses.
10. Conclusion
Now it’s your turn! Connect your promising Artificial Neural Networks (ANN) and standard indicators to this feature-rich Backtest/Strategy script. This tool allows you to quickly evaluate how well your indicators perform in trading scenarios and easily compare different trading logics defined by algebraic/boolean equations. You can refine your trading strategy step by step without needing a coder. Let it incorporate numerous variables and indicators—simply write the algebraic/boolean equations for trade entries and exits directly into the script’s settings.
Additionally, you can utilize the Time Filter to identify the market conditions where your setups perform best—or where they fall short. The Session Filter helps you isolate recurring favorable conditions to optimize your strategy further. Once you find a promising configuration, you can set up alerts to send webhooks directly. Configure all parameters, test and validate them in paper trading, and if results align with your expectations, deploy the script as your trading bit.
Cheers
Pattern Pro VPOCSummary:
This indicator combines multi-timeframe pattern detection (triangles and wedges), Volume Point of Control (VPOC) visualization, predictive volume modeling, and a swing-based VWAP. It provides traders with a detailed view of key trading patterns, high-volume levels, and entry/exit opportunities, all integrated into one powerful tool.
How This Script is Unique:
Multi-Timeframe Pattern Analysis:
Identifies chart patterns like triangles and wedges across multiple timeframes, enhancing the trader's ability to spot actionable opportunities.
Dynamically tracks pivot points and projected trendlines to visualize ongoing and potential patterns.
Volume Point of Control (VPOC):
Automatically calculates and plots the VPOC for detected patterns, highlighting the price level with the highest traded volume.
Helps identify strong support/resistance levels within patterns.
Predictive Volume Modeling:
Predicts high-volume trading times based on historical averages, allowing traders to anticipate periods of increased market activity.
Bars are color-coded to reflect projected volume activity.
Swing-Based VWAP:
Incorporates swing highs and lows into VWAP calculations, making it adaptive to current market conditions.
Offers a more dynamic view compared to traditional static VWAP indicators.
Trade Management Features:
Visualizes stop-loss (SL) and take-profit (TP) levels directly on the chart.
Tracks active trades and peak performance, enabling effective trade management.
Customizability:
Offers user-defined settings for timeframe selection, risk management, and volume modeling, making it adaptable to various trading strategies.
How to Use:
Pattern Detection:
The script automatically identifies triangle and wedge patterns. No manual input is needed for detection.
Patterns are displayed with top and bottom trendlines and the associated VPOC.
Volume Modeling:
Enable "Use Predictive Volume" under the Predictive Volume settings to highlight periods of projected high activity.
Customize the moving average period and date range for better precision.
Swing-Based VWAP:
Enable "Use VWAP" and configure the anchor period to suit your trading timeframe (e.g., Session, Week, Month).
The VWAP adapts dynamically to swings for precise insights.
Risk Management:
Adjust initial risk, multiplier, and drawdown limits under Risk Management settings.
Visual SL and TP boxes make it easy to monitor trade progress.
Alerts:
Enable "Pattern Alert" to receive notifications for detected patterns.
Use "Trade Alert" to get notified of potential entry opportunities.
Custom Inputs:
Customize "Lookback Bars for VPOC" to define how far back the indicator searches for volume data.
Modify "Row Size" and "POC Settings" for precise VPOC plotting.
Related Links:
Swing-Based VWAP
Intraday Predictive High-Volume Activity Sessions
Trade Settings:
Pattern Timeframe Input:
Select the timeframe used for detecting patterns (e.g., Chart, 15m, 1H).
Use: Helps identify patterns specific to the selected timeframe.
Bars to Entry:
Defines the number of bars within which a trade should be entered after a pattern is detected.
Use: Ensures timely entries based on identified patterns.
Plot Peak Profit:
Toggles the visualization of the peak profit level for trades.
Use: Helps monitor the maximum potential profit from a trade.
Use Close of Candle Above/Below Top/Bottom Line:
When enabled, the script uses the close of the candle instead of wicks to determine line breakouts.
Use: Ensures more precise break detection for pattern confirmation.
Pattern VPOC Settings:
Lookback Bars for VPOC:
Specifies the number of bars to analyze for calculating the Volume Point of Control (VPOC).
Use: Adjusts the depth of data analyzed for VPOC determination.
Row Size:
Determines the granularity of VPOC calculations. Higher values result in finer divisions.
Use: Fine-tune VPOC plotting for greater precision.
Pattern VPOC Color:
Sets the color of the VPOC line on the chart.
Use: Customize chart aesthetics for better visibility.
Width:
Adjusts the thickness of the VPOC line.
Use: Makes the line more prominent on the chart.
Risk Management:
Initial Risk:
Specifies the base risk amount for each trade.
Use: Helps determine the trade size based on risk tolerance.
Risk Increment Type:
Selects whether risk increments are linear or exponential after consecutive losses.
Use: Adjusts risk dynamically to manage losses effectively.
Multiplier:
Multiplies the risk in exponential mode to calculate the next risk value after a loss.
Use: Defines the growth factor for exponential risk.
Max Drawdown:
Sets the maximum drawdown value before halting trading.
Use: Protects against significant capital depletion.
Initial Capital:
Specifies the starting capital for performance calculations.
Use: Helps measure performance and calculate drawdown percentages.
Alert Settings:
Trade Alert:
Enables alerts for detected trade setups.
Use: Keeps the user notified about potential trade opportunities.
Pattern Alert:
Enables alerts for detected patterns.
Use: Provides immediate notification when a pattern is identified.
Predictive Volume:
Use Predictive Volume:
Toggles the predictive volume modeling feature.
Use: Highlights projected high-volume periods for better timing.
Select Timeframe for Predictive Volume:
Defines the timeframe for predictive volume analysis.
Use: Allows predictive modeling to align with the user's trading style.
MA Average Periods:
Sets the moving average length for volume prediction.
Use: Smoother or more responsive predictive models based on user preference.
Date Range:
Specifies the historical range used for volume analysis.
Use: Limits the scope of volume data for calculations.
VWAP Settings:
Use VWAP:
Toggles the VWAP calculation and plotting.
Use: Tracks the average price weighted by volume to find key price levels.
Hide VWAP on 1D or Above:
Hides VWAP plots on daily or higher timeframes.
Use: Avoids clutter on charts with higher timeframes.
Anchor Period:
Sets the anchor period for VWAP calculation (e.g., Session, Week, Month).
Use: Aligns VWAP with the selected timeframe.
Source:
Defines the price source for VWAP calculation (default: hlc3).
Use: Adjusts VWAP based on the preferred price type.
Offset:
Adjusts the VWAP line's placement by the specified number of bars.
Use: Moves the VWAP line forward or backward for better visual alignment.
Swing Size:
Defines the sensitivity for detecting swing highs and lows in VWAP calculations.
Use: Refines VWAP calculations to match market swings.
Dual Strategy Selector V2 - CryptogyaniOverview:
This script provides traders with a dual-strategy system that they can toggle between using a simple dropdown menu in the input settings. It is designed to cater to different trading styles and needs, offering both simplicity and advanced filtering techniques. The strategies are built around moving average crossovers, enhanced by configurable risk management tools like take profit levels, trailing stops, and ATR-based stop-loss.
Key Features:
Two Strategies in One Script:
Strategy 1: A classic moving average crossover strategy for identifying entry signals based on trend reversals. Includes user-defined take profit and trailing stop-loss options for profit locking.
Strategy 2: An advanced trend-following system that incorporates:
A higher timeframe trend filter to confirm entry signals.
ATR-based stop-loss for dynamic risk management.
Configurable partial take profit to secure gains while letting the trade run.
Highly Customizable:
All key parameters such as SMA lengths, take profit levels, ATR multiplier, and timeframe for the trend filter are adjustable via the input settings.
Dynamic Toggle:
Traders can switch between Strategy 1 and Strategy 2 with a single dropdown, allowing them to adapt the strategy to market conditions.
How It Works:
Strategy 1:
Entry Logic: A long trade is triggered when the fast SMA crosses above the slow SMA.
Exit Logic: The trade exits at either a user-defined take profit level (percentage or pips) or via an optional trailing stop that dynamically adjusts based on price movement.
Strategy 2:
Entry Logic: Builds on the SMA crossover logic but adds a higher timeframe trend filter to align trades with the broader market direction.
Risk Management:
ATR-Based Stop-Loss: Protects against adverse moves with a volatility-adjusted stop-loss.
Partial Take Profit: Allows traders to secure a percentage of gains while keeping some exposure for extended trends.
How to Use:
Select Your Strategy:
Use the dropdown in the input settings to choose Strategy 1 or Strategy 2.
Configure Parameters:
Adjust SMA lengths, take profit, and risk management settings to align with your trading style.
For Strategy 2, specify the higher timeframe for trend filtering.
Deploy and Monitor:
Apply the script to your preferred asset and timeframe.
Use the backtest results to fine-tune settings for optimal performance.
Why Choose This Script?:
This script stands out due to its dual-strategy flexibility and enhanced features:
For beginners: Strategy 1 provides a simple yet effective trend-following system with minimal setup.
For advanced traders: Strategy 2 includes powerful tools like trend filters and ATR-based stop-loss, making it ideal for challenging market conditions.
By combining simplicity with advanced features, this script offers something for everyone while maintaining full transparency and user customization.
Default Settings:
Strategy 1:
Fast SMA: 21, Slow SMA: 49
Take Profit: 7% or 50 pips
Trailing Stop: Optional (disabled by default)
Strategy 2:
Fast SMA: 20, Slow SMA: 50
ATR Multiplier: 1.5
Partial Take Profit: 50%
Higher Timeframe: 1 Day (1D)
Triple EMA Crossover StrategyTriple EMA Crossover Strategy
Overview
The Triple EMA Crossover Strategy is a trend-following trading system that utilizes three Exponential Moving Averages (EMAs) to identify potential entry and exit points in the market. This strategy is based on the principle that when shorter-term prices cross above longer-term prices, it can indicate a bullish trend, and conversely when they cross below, it can signal a bearish trend.
Components
Exponential Moving Averages (EMAs):
Short EMA: A fast-moving average that reacts quickly to price changes (commonly set to 9 periods).
Medium EMA: A medium-term average that smooths out price data and helps confirm trends (commonly set to 21 periods).
Long EMA: A slow-moving average that helps identify the overall trend direction (commonly set to 55 periods).
Trading Signals:
Buy Signal: A long entry is triggered when:
The Short EMA (9) crosses above the Medium EMA (21).
The Medium EMA (21) is above the Long EMA (55).
Sell Signal: A short entry is signaled when:
The Short EMA (9) crosses below the Medium EMA (21).
The Medium EMA (21) is below the Long EMA (55).
Stop Loss and Take Profit:
Stop Loss: Implement a predefined percentage or ATR-based stop loss to limit potential losses.
Take Profit: Set a target based on a risk-to-reward ratio that reflects your trading strategy's goals.
Advantages
Trend Identification: The EMA crossover system allows traders to identify the current trend dynamically, focusing on upward or downward price movements.
Simplicity: The strategy is straightforward, making it accessible for both new and experienced traders.
Flexibility: This method can be applied across multiple timeframes and asset classes, making it versatile for various trading styles.
Disadvantages
Lagging Indicator: Moving averages are lagging indicators, meaning signals may come later than the actual price movement, which can lead to missed opportunities.
Whipsaw Effect: In ranging markets, the strategy may produce false signals leading to potential losses.
ETH Signal 15m
This strategy uses the Supertrend indicator combined with RSI to generate buy and sell signals, with stop loss (SL) and take profit (TP) conditions based on ATR (Average True Range). Below is a detailed explanation of each part:
1. General Information BINANCE:ETHUSDT.P
Strategy Name: "ETH Signal 15m"
Designed for use on the 15-minute time frame for the ETH pair.
Default capital allocation is 15% of total equity for each trade.
2. Backtest Period
start_time and end_time: Define the start and end time of the backtest period.
start_time = 2024-08-01: Start date of the backtest.
end_time = 2054-01-01: End date of the backtest.
The strategy will only run when the current time falls within this specified range.
3. Supertrend Indicator
Supertrend is a trend-following indicator that provides buy or sell signals based on the direction of price changes.
factor = 2.76: The multiplier used in the Supertrend calculation (increasing this value makes the Supertrend less sensitive to price movements).
atrPeriod = 12: Number of periods used to calculate ATR.
Output:
direction: Determines the buy/sell direction based on Supertrend.
If direction decreases, it signals a buy (Long).
If direction increases, it signals a sell (Short).
4. RSI Indicator
RSI (Relative Strength Index) is a momentum indicator, often used to identify overbought or oversold conditions.
rsiLength = 12: Number of periods used to calculate RSI.
rsiOverbought = 70: RSI level considered overbought.
rsiOversold = 30: RSI level considered oversold.
5. Entry Conditions
Long Entry:
Supertrend gives a buy signal (ta.change(direction) < 0).
RSI must be below the overbought level (rsi < rsiOverbought).
Short Entry:
Supertrend gives a sell signal (ta.change(direction) > 0).
RSI must be above the oversold level (rsi > rsiOversold).
The strategy will only execute trades if the current time is within the backtest period (in_date_range).
6. Stop Loss (SL) and Take Profit (TP) Conditions
ATR (Average True Range) is used to calculate the distance for Stop Loss and Take Profit based on price volatility.
atr = ta.atr(atrPeriod): ATR is calculated using 12 periods.
Stop Loss and Take Profit are calculated as follows:
Long Trade:
Stop Loss: Set at close - 4 * atr (current price minus 4 times the ATR).
Take Profit: Set at close + 2 * atr (current price plus 2 times the ATR).
Short Trade:
Stop Loss: Set at close + 4 * atr (current price plus 4 times the ATR).
Take Profit: Set at close - 2.237 * atr (current price minus 2.237 times the ATR).
Summary:
This strategy enters a Long trade when the Supertrend indicates an upward trend and RSI is not in the overbought region. Conversely, a Short trade is entered when Supertrend signals a downtrend, and RSI is not oversold.
The trade is exited when the price reaches the Stop Loss or Take Profit levels, which are determined based on price volatility (ATR).
Disclaimer:
The content provided in this strategy is for informational and educational purposes only. It is not intended as financial, investment, or trading advice. Trading in cryptocurrency, stocks, or any financial markets involves significant risk, and you may lose more than your initial investment. Past performance is not indicative of future results, and no guarantee of profit can be made. You should consult with a professional financial advisor before making any investment decisions. The creator of this strategy is not responsible for any financial losses or damages incurred as a result of following this strategy. All trades are executed at your own risk.
Pullback_Power [JackTz]Welcome to Pullback_Power
Pullback_Power is a scalping strategy designed to capitalize on market retracements while incorporating unique dynamic features to enhance profitability.
Calculation
Pullback_Power purely uses moving averages to calculate both entry and exits. Exits can also be set to fixed percentages for both take profit and stop loss.
How the Strategy Works
Statistics show that markets normally do a recovery after each drop. Crypto markets can easily drop up to 20% within a few hours and then do a complete or partial recovery. Pullback_Power utilizes this known pattern alongside pyramiding. The strategy aims to catch one or more entries when the price drops, hoping to make profits when the market recovers from the drop. The fixed take profit and stop loss can be used to define your risk management, while the dynamic exit opportunity is riskier but provides the ability to stay in the trade longer while it recovers. Pullback_Power can make up to four entries. This means it utilizes pyramiding to spread out the entry points, but every exit is a full exit. It is not possible to partially exit.
Utility
Pullback_Power is a scalping strategy suitable for traders who operate with small trades and don't want to stay in the market for too long. Pullback_Power offers precise signals with no repainting. The strategy thrives in volatility, so crypto pairs might yield the best results, although this strategy can be adapted to work on all pairs and markets.
How to Automate It
Pullback_Power utilizes the standard placeholders of strategies on TradingView. This enables the trader to add every data point into a webhook, making it fully flexible to suit every trader's needs. To automate, create an alert, set the webhook URL, and add the JSON body needed for the webhook. An example of a simple JSON webhook with some of the standard strategy placeholders:
{
"side": "{{strategy.order.action}}",
"symbol": "{{ticker}}",
"amount": "{{strategy.order.contracts}}"
}
Read about all the standard placeholders that you can use here: TradingView - Standard strategy placeholders
Originality
Pullback_Power is unique in its ability to create precise signals without repainting while maintaining a solid approach to the pullback strategy. Its simplicity not only makes the strategy easy to use and understand but also highly effective. The simplicity reduces inputs, eliminating overfitting and limits each input to avoid incorrect usage. Many times, default settings are enough to achieve good backtesting results on almost all pairs available. Pullback_Power also differs from many other strategies by its solid code, which enhances performance and provides more reliable backtesting. The clean code increases the resilience and precision of the entries, making it less prone to errors.
Many pullback/scalping strategies normally only works on specific scopes of timeframes or pairs. Pullback_Power can easily be adapted to work on almost every scenario. The biggest change needed is the length of the moving average. The lower the timeframe, the higher a length is needed for proper results. I.e. on a 2H timeframe a length of 3 can yield good results. On a 5min timeframe the length might need to be as high as 70.
How to Use
To use Pullback_Power, add the script to your trading chart. By default, Pullback_Power opens four orders to optimize trade opportunities with a default fee value set at 0.1%. You can change these default settings in the Settings window under the Properties tab. To tailor Pullback_Power to your individual trading style, navigate to the Settings under the Input tab. Here you can configure various inputs to fit your trading style.
- Backtest settings , Start Date:
Defines the date of when the calculation starts. Use this to set the date of when the first trade could potentially emit.
- Backtest settings , End Date:
Defines the date of when the calculation ends. If there are any open trades after this date the close calculations are still live. It only makes sure that new orders cannot be opened after this date.
- Backtest settings , Only trade on weekdays:
This is a toggle you can enable or disable. If enabled it only allows new entries to happen during the normal week days, meaning Monday, Tuesday, Wednesday, Thursday and Friday.
Disable this to enable the script to open trades on all 7 days of the week.
- Open settings , Use dynamic long positions:
This toggle allows you to enable or disable the pullback level calculations after first trade.
If enabled, the calculations of level 2, 3 and 4 continues to happen after each bar, making the levels follow the price with the moving averages calculations.
If disabled, the calculations of the levels stop after the first trade. This means that the levels calculation at the point of the first trade stay fixed until all trades are closed.
You can see the difference of the green lines on the chart when you toggle this flag.
- Open settings , Data type:
This is the bar data used for the moving average calculation when opening trades. The possible data types are Open, High, Low, Close, HL2, HLC3, OHLC4, OC2 and HC2.
- Open settings , Source type:
This is the source used to calculate the moving average. The types available are: SMA, PCMA, EMA, WMA, DEMA, ZLEMA and HMA.
- Open settings , Length:
This is the length used for the moving average calculations. 3 means it takes the last 3 bars of historical data for the calculation.
- Open settings , Offset:
This defines if the calculation should use an offset for the historical data. This does not use a look-forward feature, but a look-backward feature. To prevent any possible repaints the offset can only be positive, not negative.
For instance, if the length is 3 and the offset is 0 the calculation is made from the last 3 bars, making it bar1, bar2 and bar3. If the length is 3 and the offset is 1 the calculation is made from bar2, bar3, and bar4 – offsetting the calculation by 1 bar.
- Leverage settings , Leverage liquidation (1-125):
The script itself does not handle any custom leverage calculation – this must be done in the Properties tabs and increasing the order size.
This setting is made to test a possible liquidation event if using leverage.
By setting this to higher than 1, a red line is visible after the first trade on the chart. This indicates the liquidation price.
If this setting is set to 25, the script will calculate the liquidation price from a x25 leverage. If this price is hit, the scripts stops emitting any orders and the background turns red.
You can use this to test if your settings could handle a certain level of leverage.
- Pullback settings , Pullback 1, 2, 3 and 4:
Each of these settings defines the entry price of each pullback level. If Pullback 1 is set to -6 it means that the moving average calculation should be 6% lower than the actual price.
The same logic applies to Pullback 2, 3 and 4.
Setting any level to 0 will disable the level – eliminating any orders to emit on that level.
This can be used to change the level of pyramiding down from 4 if needed.
If you do this, remember to also change the order size and the pyramiding value in the Properties tab accordingly.
- Close settings , Use dynamic TP and SL:
If enabled, script will exit all orders using the same but separate algorithm for moving averages. This enables the user to define if you want the orders to be closed if the price level of this moving average is hit. The price level for this calculation is visible on the chart by the blue line.
Although you can change the length and offset, as described underneath, this calculation uses the same data and source type defined in the Open settings area.
- Close settings , Length, Close:
This is the length used for the closing moving average calculations. 3 means it takes the last 3 bars of historical data for the calculation.
- Close settings , Offset, Close:
This defines if the calculation for the closing moving average should use an offset for the historical data. Just as the offset used for opening order, this does not use a look-forward feature, but a look-backward feature. To prevent any possible repaints the offset can only be positive, not negative.
For instance, if the length is 3 and the offset is 0 the calculation is made from the last 3 bars, making it bar1, bar2 and bar3. If the length is 3 and the offset is 1 the calculation is made from bar2, bar3, and bar4 – offsetting the calculation by 1 bar.
- Close settings , Use TakeProfit:
This toggle enables/disables a fixed take profit percentage.
- Close settings , TP %:
This sets the wanted % to reach on a take profit. This setting is ignored if the toggle above is disabled.
- Close settings , Use StopLoss:
This toggle enables/disables a fixed stop loss percentage.
- Close settings , SL %:
This sets the wanted % to reach on a stop loss. This setting is ignored if the toggle above is disabled.
Exit on Same Bar as Entry
By default, the script doesn't emit any exit orders on the same bar as the first entry order. Enable "Recalculation: After order is filled" to change this behavior.
Troubleshooting
While Pullback_Power is designed to provide reliable trading signals, you may encounter rare issues. One such issue could be receiving an error message stating "can't open orders with 0 or negative qty." If you encounter this error, it is likely due to specific conditions on the selected timeframe. To resolve this issue, change the timeframe on your trading chart.
Underlying Principles and Value Proposition
Pullback_Power leverages moving averages and volatility behavior to identify market retracements and capitalize on them. The strategy is rooted in the understanding that markets often experience temporary reversals or "pullbacks" before resuming their primary trend. By identifying these pullbacks and entering trades at opportune moments, Pullback_Power aims to capture quick profits from short-term market movements.
The dynamic and fixed calculations of Take Profit (TP) and Stop Loss (SL) levels enhances risk management, ensuring that potential losses are controlled while allowing room for profits to grow. The adaptive approach using the moving averages considers current market conditions, making the strategy flexible and responsive to changing volatility.
Moreover, Pullback_Power's non-repainting nature ensures the reliability of its signals, eliminating hindsight bias and providing traders with actionable insights based on real-time market data.
The strategy's simplicity and effectiveness make it accessible for traders of all experience levels. Whether you're a beginner looking to start scalping or an experienced trader seeking to diversify your trading approach, Pullback_Power offers a balanced blend of simplicity and sophistication to help you navigate the markets with confidence.
By focusing on clear, transparent principles and offering practical tools for risk management, Pullback_Power aims to provide tangible value to traders, empowering them to make informed decisions and optimize their trading outcomes.
Thank you for choosing Pullback_Power. I wish you successful trading!
Multi-Pairs Stratrgy Backtesting ScreenerThis indicator is for viewing and checking the results of a specific strategy simultaneously on 25 currency pairs. Results such as number of trades, wins, losses, canceled trades and most importantly win rate.
Long condition is as follows:
Short condition is as follows:
An Alert Fibo Level is built in to indicate the buy or sell status.
Reset Deal Calculation Fibo Level , if the price hits it, the indicator resets all calculations and prepares for the next situation.
If Other situation appear after missed situation, indicator consider it:
All statistics collected in Screener Table :
Date Period:
Users can customize the date period during which the strategy is tested, allowing for a more granular analysis of performance over specific timeframes.
Entry:
Entry is based on Fibonacci level between the Lower Low and Higher High pivots for Long deals.
Entry is based on Fibonacci level between the Higher High and Lower Low pivots for Short deals.
Allowing a second entry
There is a feature that If the risk-to-reward ratio is below the specified input (rr), the trading deal wont initiate.
Stop Loss:
Adjustable based on Fibonacci levels , Base Pivot, Percent and ATR.
The Base Pivot is calculate from LL pivot point for Long and HH pivot point for short (not Entry price).
The Percent and ATR is calculate from Entry price.
Targets:
Adjustable based on Source, Fibonacci levels , Percent and ATR.
Source indicates the maximum (minimum) value between the open and close of the candle where the Higher High (Lower Low) pivot point was formed for Long (Short) deals.
Percent and ATR calculates from Entry 1 Price
Exit Methods :
The goal is to offer users a diverse set of exits before the price touches the target or stop loss.
1. Pending Entry Time-out
cancel pending entry based on candle counting since alert fired. (before deal started)
2. Active Deal Reverse
If a deal (long or short position) is currently open, and the reverse signal is emitted, the script will close the existing deal.
3. Reverse Deal Exit
If a deal (long or short position) is currently open, and the reverse signal is emitted, the script will automatically close the existing deal.
4. Move Exit
With this method, if Entry 2 is triggered, the deal will be closed when the price touches the Entry price.
5. Candle Counting Exit
This exit type is based on the number of candles since the deal started.
MACD of Relative Strenght StrategyMACD Relative Strenght Strategy :
INTRODUCTION :
This strategy is based on two well-known indicators: MACD and Relative Strenght (RS). By coupling them, we obtain powerful buy signals. In fact, the special feature of this strategy is that it creates an indicator from an indicator. Thus, we construct a MACD whose source is the value of the RS. The strategy only takes buy signals, ignoring SHORT signals as they are mostly losers. There's also a money management method enabling us to reinvest part of the profits or reduce the size of orders in the event of substantial losses.
RELATIVE STRENGHT :
RS is an indicator that measures the anomaly between momentum and the assumption of market efficiency. It is used by professionals and is one of the most robust indicators. The idea is to own assets that do better than average, based on their past performance. We calculate RS using this formula :
RS = close/highest_high(RS_Length)
Where highest_high(RS_Length) = highest value of the high over a user-defined time period (which is the RS_Length).
We can thus situate the current price in relation to its highest price over this user-defined period.
MACD (Moving Average Convergence - Divergence) :
This is one of the best-known indicators, measuring the distance between two exponential moving averages : one fast and one slower. A wide distance indicates fast momentum and vice versa. We'll plot the value of this distance and call this line macdline. The MACD uses a third moving average with a lower period than the first two. This last moving average will give a signal when it crosses the macdline. It is therefore constructed using the values of the macdline as its source.
It's important to note that the first two MAs are constructed using RS values as their source. So we've just built an indicator of an indicator. This kind of method is very powerful because it is rarely used and brings value to the strategy.
PARAMETERS :
RS Length : Relative Strength length i.e. the number of candles back to find the highest high and compare the current price with this high. Default is 300.
MACD Fast Length : Relative Strength fast EMA length used to plot the MACD. Default is 14.
MACD Slow Length : Relative Strength slow EMA length used to plot the MACD. Default is 26.
MACD Signal Smoothing : Macdline SMA length used to plot the MACD. Default is 10.
Max risk per trade (in %) : The maximum loss a trade can incur (in percentage of the trade value). Default is 8%.
Fixed Ratio : This is the amount of gain or loss at which the order quantity is changed. Default is 400, meaning that for each $400 gain or loss, the order size is increased or decreased by a user-selected amount.
Increasing Order Amount : This is the amount to be added to or subtracted from orders when the fixed ratio is reached. The default is $200, which means that for every $400 gain, $200 is reinvested in the strategy. On the other hand, for every $400 loss, the order size is reduced by $200.
Initial capital : $1000
Fees : Interactive Broker fees apply to this strategy. They are set at 0.18% of the trade value.
Slippage : 3 ticks or $0.03 per trade. Corresponds to the latency time between the moment the signal is received and the moment the order is executed by the broker.
Important : A bot has been used to test the different parameters and determine which ones maximize return while limiting drawdown. This strategy is the most optimal on BITSTAMP:ETHUSD in 8h timeframe with the parameters set by default.
ENTER RULES :
The entry rules are very simple : we open a long position when the MACD value turns positive. You are therefore LONG when the MACD is green.
EXIT RULES :
We exit a position (whether losing or winning) when the MACD becomes negative, i.e. turns red.
RISK MANAGEMENT :
This strategy can incur losses, so it's important to manage our risks well. If the position is losing and has incurred a loss of -8%, our stop loss is activated to limit losses.
MONEY MANAGEMENT :
The fixed ratio method was used to manage our gains and losses. For each gain of an amount equal to the value of the fixed ratio, we increase the order size by a value defined by the user in the "Increasing order amount" parameter. Similarly, each time we lose an amount equal to the value of the fixed ratio, we decrease the order size by the same user-defined value. This strategy increases both performance and drawdown.
Enjoy the strategy and don't forget to take the trade :)
MFR RangeHello Traders!
You requested it for many months, we are finally making our proprietary Range available to all.
First of all, how should a trader consider a Range in general:
In trading, a "range" refers to a specific price interval or zone within which an asset's price moves or consolidates for a period of time. Ranges are characterized by relatively horizontal or sideways price movements, where the price oscillates between a defined upper and lower boundary. Traders often use ranges to identify potential trading opportunities, manage risk, and make trading decisions.
Here's how ranges are used in trading:
1. Range Identification:
Traders identify ranges by observing price charts and looking for periods where the price appears to be moving horizontally with clear upper and lower boundaries.
Common range patterns include rectangles, channels, and horizontal consolidations.
2. Range Trading Strategies:
Range trading strategies aim to profit from price movements within the established range. Traders typically use two main approaches within a range:
Buying near the range's lower boundary: Traders buy when the price approaches the lower end of the range, anticipating a bounce or reversal towards the upper boundary. This is often referred to as "buying support."
Selling near the range's upper boundary: Traders sell when the price approaches the upper end of the range, anticipating a pullback or reversal towards the lower boundary. This is known as "selling resistance."
3. Risk Management:
Stop-loss orders are crucial when trading ranges. Traders set stop-loss orders just outside the range's boundaries to limit potential losses if the price breaks out of the range unpredictably.
4. Range Breakouts:
Ranges do not last indefinitely, and eventually, the price may break out of the range, leading to a significant price movement.
Traders often look for breakout patterns and use breakout trading strategies to capitalize on the potential for a strong price movement after the range is broken.
5. Volatility Consideration:
Some traders may assess the volatility within the range. If the price oscillates within the range with high volatility, they may consider trading shorter timeframes for smaller, quicker profits.
Lower volatility may prompt longer-term traders to take positions within the range, expecting a slower, more controlled price movement.
6. Time Frame Analysis:
Traders may analyze the time frame in which the range has developed, in our case MFR range are based solely on the Daily timeframe.
7. Confirmation Indicators:
Traders often use technical indicators like Relative Strength Index (RSI), Moving Averages, or Bollinger Bands to confirm range trading signals and assess overbought or oversold conditions.
8. Range Boundaries as Support and Resistance:
Once a range is identified, its upper and lower boundaries can serve as key support and resistance levels even after the range is broken. Traders pay attention to these levels for future trading decisions.
9. Range Expansion:
Some traders look for signs of range expansion, where the price starts to break out or trend strongly. This can signal the end of a range-bound market and a transition to a trending market.
It's important to note that while range trading can be profitable, it requires careful analysis and risk management. Traders must be prepared for the possibility of a breakout that can result in significant losses if they are on the wrong side of the trade. Additionally, market conditions can change, and ranges can evolve into trends or other patterns, so traders need to adapt their strategies accordingly.
What is specific to MFR range?
This script calculates and plots a trading range on a daily timeframe based on historical price data. Based on Benoit Mandelbrot and Edgar E. Peters publications on Range, we run a set of calculations over a defined period. The script will define those to generate the "Range High" and "Range Low". These values are used to define the upper and lower bounds of the trading range.
In short, how could I use this script?
A trader could use the Range to find overbought or oversold points to enter a position. The Lower Range being the price to buy an asset and the Upper Range being the place to sell an asset. This is recommended to be implemented only when our other indication called Trend matches the strategy: buy when the trend is bullish or short when the trend is bearish.
It's important to note that while Range is a useful tool, it should not be relied upon solely for making trading decisions. It's recommended to use it in conjunction with other technical analysis tools and consider other factors such as market conditions, risk management, and fundamental analysis. Remember that the Range indicator is just one tool among many, and it's important to consider other factors such as volume, momentum, volatility, and overall market conditions when making trading decisions. Additionally, using stop-loss orders and proper risk management techniques is crucial to mitigate potential losses.
We hope that you will find these explanations useful, please contact us by private message for access.
Enjoy!
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorised. This script is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. Myfractalrange is not responsible for any losses you may incur. Please invest wisely.
Kioseff Trading - AI-Optimized Supertrend
AI-Optimized Supertrend
Introducing AI-Optimized Supertrend: a streamlined solution for traders of any skill level seeking to rapidly test and optimize Supertrend. Capable of analyzing thousands of strategies, this tool cuts through the complexity to identify the most profitable, reliable, or efficient approaches.
Paired with TradingView's native backtesting capabilities, the AI-Optimized Supertrend learns from historical performance data. Set up is easy for all skill levels, and it makes fine-tuning trading alerts and Supertrend straightforward.
Features
Rapid Supertrend Strategy Testing : Quickly evaluate thousands of Supertrend strategies to find the most effective ones.
AI-Assisted Optimization : Leverage AI recommendations to fine-tune strategies for superior results.
Multi-Objective Optimization : Prioritize Supertrend based on your preference for the highest win rate, maximum profit, or efficiency.
Comprehensive Analytics : The strategy script provides an array of statistics such as profit factor, PnL, win rate, trade counts, max drawdown, and an equity curve to gauge performance accurately.
Alerts Setup : Conveniently set up alerts to be notified about critical trade signals or changes in performance metrics.
Versatile Stop Strategies : Experiment with profit targets, trailing stops, and fixed stop losses.
Binary Supertrend Exploration : Test binary Supertrend strategies.
Limit Orders : Analyze the impact of limit orders on your trading strategy.
Integration with External Indicators : Enhance strategy refinement by incorporating custom or publicly available indicators from TradingView into the optimization process.
Key Settings
The image above shows explanations for a list of key settings for the optimizer.
Set the Factor Range Limits : The AI suggests optimal upper and lower limits for the Factor range, defining the sensitivity of the Supertrend to price fluctuations. A wider range tests a greater variety, while a narrower range focuses on fine-tuning.
Adjust the ATR Range : Use the AI's recommendations to establish the upper and lower bounds for the Average True Range (ATR), which influences the Supertrend's volatility threshold.
ATR Flip : This option lets you interchange the order of ATR and Factor values to quicky test different sequences, giving you the flexibility to explore various combinations and their impact on the Supertrend indicator's performance.
Strategies Evaluated : Adjust this setting to determine how many Supertrend strategies you want to assess and compare.
Enable AI Mode : Turn this feature on to allow the AI to determine and employ the optimal Supertrend strategy with the desired performance metric, such as the highest win rate or maximum profitability.
Target Metric : Adjust this to direct the AI towards optimizing for maximum profit, top win rates, or the most efficient profits.
AI Mode Aggressiveness : Set how assertively the AI pursues the chosen performance goal, such as highest profit or win rate.
Strategy Direction : Choose to focus the AI's testing and optimization on either long or short Supertrend strategies.
Stop Loss Type : Specify the stop loss approach for optimization—fixed value, a trailing stop, or Supertrend direction changes.
Limit Order : Decide if you want to execute trades using limit orders for setting your profit targets, stop losses, or apply them to both.
Profit Target : Define your desired profit level when using either a fixed stop loss or a trailing stop.
Stop Loss : Define your desired stop loss when using either a fixed stop loss or a trailing stop.
How to: Find the best Supertrend for trading
It's important to remember that merely having the AI-Optimized Supertrend on your chart doesn't automatically provide you with the best strategy. You need to follow the AI's guidance through an iterative process to discover the optimal Supertrend settings and strategy.
Optimizing Supertrend involves adjusting two key parameters: the Factor and the Average True Range (ATR). These parameters significantly influence the Supertrend indicator's sensitivity and responsiveness to price movements.
Factor : This parameter multiplies the ATR to determine the distance of the Supertrend line from the price. Higher values will create a wider band, potentially leading to fewer trade signals, while lower values create a narrower band, which may result in more signals but also more noise.
ATR (Average True Range) : ATR measures market volatility. By using the ATR, the Supertrend adapts to changing market volatility; a higher ATR value means a more volatile market, so the Supertrend adjusts accordingly.
During the optimization process, these parameters are systematically varied to determine the combination that yields the best performance based on predefined criteria such as profitability, win rate, or risk management efficiency. The optimization aims to find the optimal Factor and ATR settings.
1.Starting Your Strategy Setup
Begin by deciding your goals for each trade: your profit target and stop loss, or if all trades exit when Supertrend changes direction. You'll also choose how to manage your stops – whether they stay put (fixed) or move with the price (trailing), and whether you want to exit trades at a specific price (limit orders). Keep the initial settings for Supertrend Factor Range and Supertrend ATR Range at their default to give the tool a broad testing field. The AI's guidance will refine these settings to pinpoint the most effective ones through a process of comprehensive testing.
Demonstration Start: We'll begin with the settings outlined in the key settings section, using Supertrend's direction change to the downside as our exit signal for all trades.
2. Continue applying the AI’s suggestions
Keep updating your optimization settings based on the AI's recommendations. Proceed with this iterative optimization until the "Best Found" message is displayed, signaling that the most effective strategy has been identified.
While following the AI's suggestions, we've been prompted with a new suggestion: increase the
number of strategies evaluated. Keep following the AI's new suggestions to evaluate more strategies. Do this until the "Best Found" message shows up.
Success! We continued to follow the AI’s suggestions until “Best Found” was indicated!
AI Mode
AI Mode incorporates Heuristic-Based Adaptive Learning to fine-tune trading strategies in a continuous manner. This feature consists of two main components:
Heuristic-Based Decision Making: The algorithm evaluates multiple Supertrend-based trading strategies using metrics such as Profit and Loss (PNL), Win Rate, and Most Efficient Profit. These metrics act as heuristics to assist the algorithm in identifying suitable strategies for trade execution.
Online Learning: The algorithm updates the performance evaluations of each strategy based on incoming market data. This enables the system to adapt to current market conditions.
Incorporating both heuristic-based decision-making and online learning, this feature aims to provide a framework for trading strategy optimization.
AI Mode Settings
AI Mode Aggressiveness:
Description: The "AI Mode Aggressiveness" setting allows you to fine-tune the AI's trading behavior. This setting ranges from “Low” to “High”, with “High” indicating a more assertive trading approach.
Functionality: This feature filters trading strategies based on a proprietary evaluation method. A higher setting narrows down the strategies that the AI will consider, leaning towards more aggressive trading. Conversely, a lower setting allows for a more conservative approach by broadening the pool of potential strategies.
Optimization
Trading system optimization is immensely advantageous when executed with prudence.
Technical-oriented, mechanical trading systems work when a valid correlation is methodical to the extent that an objective, precisely-defined ruleset can consistently exploit it. If no such correlation exists, or a technical-oriented system is erroneously designed to exploit an illusory correlation (absent predictive utility), the trading system will fail.
Evaluate results practically and test parameters rigorously after discovery. Simply mining the best-performing parameters and immediately trading them is unlikely a winning strategy. Put as much effort into testing strong-performing parameters and building an accompanying system as you would any other trading strategy. Automated optimization involves curve fitting - it's the responsibility of the trader to validate a replicable sequence or correlation and the trading system that exploits it.
[Fedra Algotrading Strategy Trailing Stop Version]Simpler version of my popular strategy.Optimized for cryptocurrencies. Originally conceived to trade automatically through bots (that's how I use it), it also works to get signals and trade manually in any exchange.
It works in spot.
Buy the dip:
Attempts to buy on the dip, finding entries when the price makes abrupt dips that break deviation of the linear regression of the last periods.
Trend Detection:
Determines whether the market is in an uptrend or downtrend by crossing 2 SMAs + super trend in different temporalities. This affects the performance of the strategy. It works as a filter to avoid making entries in a downtrend.
% Trailing Stop Loss. The Stop Loss is placed a % below the price and accompanies it in the rises to make the most of an uptrend.
Optionally, you can set up a percentage Take Profit
It allows you to easily configure the backtest period to optimize the parameters for consistent results.
The strategy calculates by default a commission of 0.1% on each trade to make the backtest more "pessimistic".
Includes advanced features for compatibility with different bots platforms in the market.
Risk management by % of equity or by maximum series of losses.
////////////////////////////
Versión más simple de mi popular estrategia, optimizada para criptomonedas. Originalmente concebida para operar automáticamente a través de bots (así es como la uso yo), también funciona para obtener señales y operar manualmente en cualquier exchange.
Funciona en spot.
Compra en la caída:
Intenta comprar en la caída, encontrando entradas cuando el precio hace caídas abruptas que rompen la desviación de la regresión lineal de los últimos períodos.
Detección de tendencia:
Determina si el mercado está en tendencia alcista o bajista mediante el cruce de 2 SMAs + super trend en diferentes temporalidades. Esto afecta al rendimiento de la estrategia. Funciona como un filtro para evitar hacer entradas en contra de la tendencia del mercado.
% Trailing Stop Loss. El Stop Loss se coloca un % por debajo del precio y lo acompaña en las subidas para aprovechar una tendencia alcista.
Opcionalmente, se puede establecer un porcentaje de Take Profit
Permite configurar fácilmente el periodo de backtest para optimizar los parámetros y obtener resultados consistentes.
La estrategia calcula por defecto una comisión del 0,1% en cada operación para que el backtest sea más "pesimista".
Incluye características avanzadas para la compatibilidad con diferentes plataformas de bots en el mercado.
Gestión del riesgo por % del capital o por serie máxima de pérdidas.
Dankland Playground DCAing multi-strategy OPThis is essentially a script that I made for myself before deciding it may be good enough for you all as well.
How it works basically is this... you have 18 oscillators which can all be used as independently as you wish. That means there are 20 groups which they can be split amongst as you choose.
When in separate groups they should not be able to sell eachothers positions without triggering a stop loss. Every single oscillator has its own position sizing and exit sizing which can be stated as either a percent of balance or a flat amount of contracts. Each oscillator has a minimum amount of profit you can tell it to sell it, which is calculated from the average cost of your current position, which does include all groups. This works out to help you average out better entry and exit prices, essentially a method of DCAing.
You can set the minimum sale amount, which is to keep it from placing orders below your exchanges minimum dollar trade cost.
The included oscillators are as follows:
Chande Momentum cross
Moving Average Cross
MACD cross
%B Bollinger cross
Stochastic cross + region filter
Stochastic RSI cross + region filter
SMII cross and region
Three RMIs
Standard RSI
LSMA-smoothed RSI
Know Sure Thing
RSI of KST
Coppock Curve
RSI of Curve
PPO
RSI of PPO
Trix
RSI of Trix
So the idea is that this is essentially multiple strategies combined into one backtestable house. Balance is calculated for all position sizes in order to try to prevent false entries that plague so many scripts (IE, you set pyramiding to 2, each buy $1000, initial balance $1000, and yet it buys two orders off the bat for $2000 total and nets 400% profit because the second was considered free)/
You tune each side and position size them so that they work together as well as you can and in doing so you are able to create a single backtest that is capable of running a bot, essentially, between multiple strategies - you can run a slower Moving Average cross, a faster SMI cross or MACD, or Bollinger that grabs big moves only, all the while having MACD trade small bonuses along the way. This way you can weight the Risk to Reward of each against eachother.
I will not try to claim this is something you can open and with no work have the best bot on the planet. This scripts intention is to take a lot of relatively common trading strategies and combine them under on roof with some risk management and the ability to weigh each against eachother.
If you are looking for a super advanced singular algorithm that tries to capture every peak and valley exactly on the dot, this is not for you. If you are looking for a tool with a high level of customizability, with a publisher who intends to update it to the best of his ability in accordance to seeking to make the best product that I personally can make for both myself and the community (because I will be using this myself of course!) that was specifically designed with the intention of performing well in spot markets by averaging low entry costs and high exit costs, this is for you! That is the exact intention here.
I do not trade margin currently, I trade spot. I am sure this script can be tuned to work on margin but this is not my intention or area so if this is you and there is something you need for margin specifically implemented, ask, because I likely don't know what you need yet.
The current backtest shown is hand-optimized by myself for BTC/USD 1hr market with NO stop loss enabled and all sales weighed to be around 0% minimum profit from the total average entry cost.
I chose to run it myself with no stop losses because Bitcoin is so bullish to me. The stop losses can still be very profitable, but not 1495% net profit. This style of automation is not for everyone as when running with no stop loss and the requirement every sale is somewhat profitable, or at least no very noticeable loss, you wind up relying on yourself to manually stop out if things crash too much and the bot has to stop trading to wait for market to go back up. The thing to do here if you are playing without a stop loss is to have your own alerts set at your fear level, a % drop in a period of time or something like that, and when you reach that point I would consider resetting the bot so it continues to take trades. I personally will accept a temporary drop in USD as long as I can keep my BTC holdings up overall as the goal should always be to have as many BTC as possible by the start and end of the bull run.
AltS Swing [Backtester]
PLEASE READ THIS DESCRIPTION TO SAVE TIME AND UNDERSTAND WHAT THIS INDICATOR DOES
This is the backtesting version for this script
In this back tested version I have shown it to be used on regular candles with realistic calculations in regards to positions sizes, slippage, fees and more
Kind Regards
This is a official version of AltSignals Long/Short Reverse Indicator
Description:
This indicator uses various indicators in combination with each other, some of the key ones to mention is Hulls, EMA , MA. Along with that it uses EMA crossovers to get the precise entries and exits.
The recommended time frames with this indictor are shorter ones, for example 5m,10m,15m work well, along with that I have found that some of the more unique time frames also work well such as 20m,45m,2hr and so on.
This indicator is not super advanced but it's still very powerful, with only 130 lines of code.
This indicator works on every chart, time, and candle type but you must play with the settings to find what is best, the same setting will not work on every pair etc.
With AltSignals Swing Indicator it trades one way, that means it gives 3 pieces of information. BUY/TakeProfit/StopLoss.
Unlike most indicators which Buy and Sell both ways this one focuses on one direction of trading so please take into account when using this.
I have added in a reverse strategy which basically shows the opposite values of of the buy, so if you select the box in the settings and un-tick it, then it will show opposite directions so sells only.
This feature is very useful especially in general bear markets when buying is difficult.
I have also added in the option for no stop losses to be used, if you set the stop loss value = 100 then it will show no stop losses.
I suggest a stop loss somewhere in the region of 1-2-3%, please note that you can use decimal stop losses too so for example 0.1 or 0.5.
This indicator is NOT a once size fits all, every chart is different, time frame and candles also, so i would suggest spending some time going through and playing with the channel length settings, which will change the EMA numbers.
Using this along with the back script to find the ideal settings is the best way to use this script, once you have done that make sure to save those values somewhere.
Its important to remember that the Regular script and the back testing script values should be the same for them to match up on the chart, so the channel lengths, stop losses and so on values should be the same.
Side note
This is not financial advice.
We will continue making updates as time goes on.
If you would like to try this script for free please visit our website or message us on Tradingview live chat.
AltS Swing [Backtester]
PLEASE READ THIS DESCRIPTION TO SAVE TIME AND UNDERSTAND WHAT THIS INDICATOR DOES
This is the backtesting version for this script
In this back tested version I have shown it to be used on regular candles with realistic calculations in regards to positions sizes, slippage, fees and more
Kind Regards
This is a official version of AltSignals Long/Short Reverse Indicator
Description:
This indicator uses various indicators in combination with each other, some of the key ones to mention is Hulls, EMA , MA. Along with that it uses EMA crossovers to get the precise entries and exits.
The recommended time frames with this indictor are shorter ones, for example 5m,10m,15m work well, along with that I have found that some of the more unique time frames also work well such as 20m,45m,2hr and so on.
This indicator is not super advanced but it's still very powerful, with only 130 lines of code.
This indicator works on every chart, time, and candle type but you must play with the settings to find what is best, the same setting will not work on every pair etc.
With AltSignals Swing Indicator it trades one way, that means it gives 3 pieces of information. BUY/TakeProfit/StopLoss.
Unlike most indicators which Buy and Sell both ways this one focuses on one direction of trading so please take into account when using this.
I have added in a reverse strategy which basically shows the opposite values of of the buy, so if you select the box in the settings and un-tick it, then it will show opposite directions so sells only.
This feature is very useful especially in general bear markets when buying is difficult.
I have also added in the option for no stop losses to be used, if you set the stop loss value = 100 then it will show no stop losses.
I suggest a stop loss somewhere in the region of 1-2-3%, please note that you can use decimal stop losses too so for example 0.1 or 0.5.
This indicator is NOT a once size fits all, every chart is different, time frame and candles also, so i would suggest spending some time going through and playing with the channel length settings, which will change the EMA numbers.
Using this along with the back script to find the ideal settings is the best way to use this script, once you have done that make sure to save those values somewhere.
Its important to remember that the Regular script and the back testing script values should be the same for them to match up on the chart, so the channel lengths, stop losses and so on values should be the same.
Side note
This is not financial advice.
We will continue making updates as time goes on.
If you would like to try this script for free please visit our website or message us on Tradingview live chat.
AltS Swing (INV)
PLEASE READ THIS DESCRIPTION TO SAVE TIME AND UNDERSTAND WHAT THIS INDICATOR DOES
This is a official version of AltSignals Long/Short Reverse Indicator
Description:
This indicator uses various indicators in combination with each other, some of the key ones to mention is Hulls, EMA , MA. Along with that it uses EMA crossovers to get the precise entries and exits.
The recommended time frames with this indictor are shorter ones, for example 5m,10m,15m work well, along with that I have found that some of the more unique time frames also work well such as 20m,45m,2hr and so on.
This indicator is not super advanced but it's still very powerful, with only 130 lines of code.
This indicator works on every chart, time, and candle type but you must play with the settings to find what is best, the same setting will not work on every pair etc.
With AltSignals Swing Indicator it trades one way, that means it gives 3 pieces of information. BUY/TakeProfit/StopLoss.
Unlike most indicators which Buy and Sell both ways this one focuses on one direction of trading so please take into account when using this.
I have added in a reverse strategy which basically shows the opposite values of of the buy, so if you select the box in the settings and un-tick it, then it will show opposite directions so sells only.
This feature is very useful especially in general bear markets when buying is difficult.
I have also added in the option for no stop losses to be used, if you set the stop loss value = 100 then it will show no stop losses.
I suggest a stop loss somewhere in the region of 1-2-3%, please note that you can use decimal stop losses too so for example 0.1 or 0.5.
This indicator is NOT a once size fits all, every chart is different, time frame and candles also, so i would suggest spending some time going through and playing with the channel length settings, which will change the EMA numbers.
Using this along with the back script to find the ideal settings is the best way to use this script, once you have done that make sure to save those values somewhere.
Its important to remember that the Regular script and the back testing script values should be the same for them to match up on the chart, so the channel lengths, stop losses and so on values should be the same.
Side note
This is not financial advice.
We will continue making updates as time goes on.
If you would like to try this script for free please visit our website or message us on Tradingview live chat.
AltS Swing
PLEASE READ THIS DESCRIPTION TO SAVE TIME AND UNDERSTAND WHAT THIS INDICATOR DOES
This is a official version of AltSignals Long/Short Reverse Indicator
Description:
This indicator uses various indicators in combination with each other, some of the key ones to mention is Hulls, EMA, MA. Along with that it uses EMA crossovers to get the precise entries and exits.
The recommended time frames with this indictor are shorter ones, for example 5m,10m,15m work well, along with that I have found that some of the more unique time frames also work well such as 20m,45m,2hr and so on.
This indicator is not super advanced but it's still very powerful, with only 130 lines of code.
With AltSignals Swing Indicator it trades one way, that means it gives 3 pieces of information. BUY/TakeProfit/StopLoss.
Unlike most indicators which Buy and Sell both ways this one focuses on one direction of trading so please take into account when using this.
I have added in a reverse strategy which basically shows the opposite values of of the buy, so if you select the box in the settings and un-tick it, then it will show opposite directions so sells only.
This feature is very useful especially in general bear markets when buying is difficult.
I have also added in the option for no stop losses to be used, if you set the stop loss value = 100 then it will show no stop losses.
I suggest a stop loss somewhere in the region of 1-2-3%, please note that you can use decimal stop losses too so for example 0.1 or 0.5.
This indicator is NOT a once size fits all, every chart is different, time frame and candles also, so i would suggest spending some time going through and playing with the channel length settings, which will change the EMA numbers.
Using this along with the back script to find the ideal settings is the best way to use this script, once you have done that make sure to save those values somewhere.
Its important to remember that the Regular script and the back testing script values should be the same for them to match up on the chart, so the channel lengths, stop losses and so on values should be the same.
Side note
This is not financial advice.
We will continue making updates as time goes on.
If you would like to try this script for free please visit our website or message us on Tradingview live chat.
MKAST V2 (monthly)PLEASE READ THE ENTIRE POST BEFORE PURCHASING & USING THE MKAST Algorithm. Saves you and me some time in emails and messages. :)
This is the NEW MONTHLY ACCESS Version of the MKAST
The MKAST Buy Sell Algorithm is a very specific strategy, cut down to its roots and made perfect for the volatile crypto market.
Many Algorithms focus only on one aspect, one side, one specific rule.
As you know, this is not how life, the market or anything else works.
MKAST combines many different aspects at the same time, scans multiple other Algorithms and comes to a conclusion based on over 1350 lines of code.
It is based on Divergences, Elliott Waves , Ichimoku , MACD , MACD Histogram, RSI , Stoch , CCI , Momentum, OBV, DIOSC, VWMACD, CMF and multiple EMAs.
Every single aspect is weighted into the decision before giving out an indication.
Most buy/sell Algorithms FAIL because they try to apply the same strategy to every single chart, which
are as individual as humans.
To conquer this problem, MKAST has a wide range of settings and variables which can be easily
modified.
To make it a true strategy, MKAST has as well settings for Take Profit Points, Multiple Entries and Stop
Losses. Everything with an Alert Feature of course.
I know from experience that many people take one Algorithm and are simply too LAZY to add multiple Algorithms to make a rational choice.
The result of that is that they lose money, by following blatantly only one Algorithm.
MKAST has additional 9 Indicators, perfect for the crypto market, which can be turned on and off.
Manual
MKAST Signals Settings
“Show Signals?” - On/Off to show the Buy/Sell Signals.
“Aggressiveness” - Increase to make the signals less aggressive and decrease to make them more aggressive.
“Show Custom Signals?” - On/Off to show custom MKAST Signals as chosen in the settings below.
“Custom Buy/Sell Aggressiveness” - Choose a custom Aggressiveness for each buy and sell signal individually.
“TJ-Index Requirement For Buy/Sell” - If the TJ-Index is below the given number, it will show the signal in grey, this also applies for normal signals. Buy 0 and Sell 15 shows all signals in their original colour again.
“Don’t show signals that don’t meet index requirement?” - Checked, it will completely not show signals which would be “grey” as in the explanation above.
“Change Backgroundcolour if index is at 15 or 0?” - Checked, changes the colour of the chart if the index is at 15 or 0 points
MKAST Panel Settings
“Show Info Panel?” - Shows Info Panel on the chart.
“Move Info Panel UP by %” - Moves Info Panel up/down.
“Move Info Panel Left/Right ” - Moves Info Panel Left/Right.
“Show BitMEX Panel?” - Shows BitMEX Panel on the chart.
“Move BitMEX Panel by % ” - Moves BitMEX Panel up/down.
“Move BitMEX Panel Left/Right” - Moves BitMEX Panel Left/Right. “Signal Source” - Choose source of candle open/close for Equity calculation.
“Leverage Used?” - Select the used Leverage for your strategy and Equity calculation.
“Fees Per Trade in % ” - Deducts these fees after each trade from Equity calculation.
“Round Current Profit Price?” - Rounds the number on the Panel. “Trading Periods ” - Choose a trading Period which will be used to calculate Period Equity.
“Show separations of each Trading Period?” - Show separations on the chart of each Trading Period.
The very new feature on Tradingview and obviously now as well on MKAST are Information Panels.
I have chosen to add an Info Panel and a BitMEX Price Panel into MKAST, to make live and even
backtesting easier.
With only one blink of an eye the user is able to see ALL relevant information, without having to go
through various ways of checking and using other tools.
The Info Panel:
The first row shows the current profit. This is calculated since the signal initiation and the current candle close. Followed by a single number, which represents the current TJ-Index, removing the need of having to add the actual TJ-Index Oscillator on the chart.
The second row shows the current position and its status. This was added on request of many users wanting to know if their position is “about to change” or not. The status shows the users if the position is “endangered” or “okay”.
Followed by the “backtesting tool” already included inside the Panel. No need for complex oscillators with a hard reading for backtesting. With this one and simple panel, you see the Period Equity for the period chosen previously in the settings. This calculates all profits made inside that period and re-sets when the period ends. Right next to it, the Total Equity calculating ALL profits since the beginning of the chart.
Right below, you see the information about the last long and short position which have been open. This helps with the evaluation and documentation of the last trade.
The BitMEX Panel:
A convenient panel which shows all BitMEX contracts and their LIVE prices. The need for opening each chart goes away, the quality and experience of trading increases.
MKAST custom Signals are one of the notorious possibilities for ADVANCED strategies with MKAST.
Users who requested these features and use them frequently are the ones, having already a very unique trading strategy and they use these very custom signals as confluence or for multiple entry trades.
These custom signals and their settings can be mostly ignored by the majority of traders who are using this Algorithm.
The idea behind the grey signals has its roots in the idea of the TJ-Index. The TJ-Index being 15 Algorithms and conditions possible showing a bullish or bearish interpretation. The index counts the Algorithms which are showing a bullish interpretation.
Like that we can make sure that signals are shown in the original colour, are only those who have an additional confluence with the TJ-Index, not letting the user buy, if at least the majority is not bullish , and not letting the user sell, if at least the majority is bearish .
The custom buy and sell aggressiveness lets the user customise the MKAST algorithm even more.
Either the users wants to see how signals are changing on a different (slightly lower or higher) aggressiveness, being able to expect a change on their own settings. OR seeing that some signals of the same sort are a little out of place and is able to move these to a different aggressiveness, increasing the profitability even more.
Needless to say, custom signals are NOT a part of the Info Panel.
MKAST Label & Trendline Settings
“Show Labels?” - On/Off to show Labels above each signal, with the percentage gain or loss, calculated from the last signal to the new signal.
“Show Trendlines?” - On/Off to show automatic Trendlines following Gainzy Lines.
“Lookback Length” - Choose a length that the automatic trendiness use for calculation. Comparable to Aggressiveness.
“Wicks//Bodies” - Change between trendiness connecting from wick to wick or from body to body.
“Black lines// Coloured lines” - Change between simply black lines or changing colour lines.
“Filter Trendlines?” - On/Off to show all trendiness or just resistance decreasing and support increasing ones.
“Limit Extensions Of The Lines?” - This value increases by how much the trendiness are being extended. 0 = endless extension, otherwise 100 = maximum custom extension.MKAST Strategy “Take Profit 1” - On/Off to show TP1 points.
“Take Profit After %” - Set the percentage after which TP1 is active.
“Take Profit 2 ” - On/Off to show TP2 points.
“Take Profit 2 After %” - Set the percentage after which TP1 is
active.
“Take Profit 3” - On/Off to show TP3 points.
“Take Profit 3 After %” - Set the percentage after which TP1 is active.
“Second Entry” - On/Off to show Second Entry points.
“Second Entry After %” - Set the percentage after which Second Entry is active.
“Third Entry” - On/Off to show Third Entry points.
“Third Entry After %” - Set the percentage after which Third Entry is active.
“Stop Loss” - On/Off to show Stop Loss points.
“Stop Loss After %” - Set the percentage after which Stop Loss is active.
MKAST Strategy
To make the life of the MKAST user even easier, I have added all adjustable Take Profit Points, Multiple entry points and Stop Loss points.
I have never seen a sustainable and reliable trading strategy without TPs, Multiple entry and especially without a stop loss. Everything in the usual and fully customisable MKAST style.
Simply choose how many Take Profit points you would like to have and choose the percentage after which you would like to see the Take Profit point appear on the chart and notify you to take profits.
Are you a Trader who likes Multiple Entries? Also no problem with MKAST. Select how many additional entries you would like to have and after how many percent you would like them to appear on the chart and remind you of adding to the position.
What would a Strategy be without a Stop Loss? Same settings apply here as on the TPs and MEs .
All of the settings are able to take fractions of a number as well. This enables users to even use all of the strategy settings for scalping or FX pairs, where high leverage and the smallest of moves are used for trading.
Needless to say, all of these settings work on RENKO and Heikin Ashi as well. These might need adjustment, since the calculation is different, yet there is nothing standing in the way of it anymore.
Crypto Modified Indicators
“Show Divergences?” - On/Off to show Divergences on the Chart based on the data of 10 different Algorithms.
“Show Oversold/bought?” - On/Off to change the colour of the chart in Oversold/bought conditions.
“Oversold/bought value?” - Choose a value for which the chart is Oversold/bought.
“Show Fibonacci Levels?” - On/Off to show automatic Fibonacci Levels.
“Fibonacci Lookback Lenght” - This value states how many candles from right now are taken into account to paint the Fibonacci Levels.
“Fibonacci Custom Period” - Choose a custom Timeframe that should be used to paint the Fibonacci Levels.
“2nd-7th Fibonacci Level” - Enter a value for the Fibonacci Levels you would like to use and see on the chart.
“Plot 1.618 Level?” - On/Off for the Fibonacci extension level.
Crypto Modified Indicators
“Show Bands?” - On/Off to show the TJ-Bands on the chart.
“Bands Length” - Choose a value for the TJ-Bands Lenght
“Show Show EMA 1-3?” - On/Off to show the EMAs 1-3 on the chart.
“EMA Lenght 1-3” - Choose a value for the first to third EMA Lenght
“Show Ichimoku? ” - On/Off to show Ichimoku on the chart.
“Show Tenkin?” - On/Off to show Tenkin on the chart. “Tenkin” - Set the lenght of the Tenkin.
“Show Kijun?” - On/Off to show Kijun on the chart.
“Kijun” - Set the lenght of the Kijun.
“Show Senkou?” - On/Off to show the Senkou on the chart. “Senkou” - Set the lenght of the Senkou.
“Displacement” - Set the value of the Displacement.
“Show Chikou Span?” - On/Off to show the Chikou Span on the chart.
Crypto Custom Indicators
In the picture above, you see the first pair of Crypto Custom Indicators. The oversold and overbought conditions are highlighted.
Bullish and Bearish divergences are also plotted on the chart.
This is personally my favourite combination of Indicators and MKAST settings. It shows nicely
everything one needs to know and makes it easier to decide wether to follow a signal or not.
We here as well a perfect example of the Automatic Fibonacci Lines (Lookback 50, Timeframe 1D).
It shows all significant levels, which we can see being respected.
Orange = 23.6%, Green = 38.2%, Red = 50%, Yellow = 61.8%, Blue = 78.6%, White = 0%;100%
In this picture above, we observe the perfect ensemble of MKAST and an EMA strategy, especially modified for crypto markets.
Here, as by default, we have the EMAs at 21, 90 and 200. These have shown to be very significant moving support and resistance points in the crypto market.
In this picture above, I lowered the timeframe to show the highly significant levels of the Ichimoku . It has not the “usual values”. These here have been modified for the volatile crypto market and set as default.
An incredibly powerful tool for anyone who is ready to step up their trading game. It is a huge part of the MKAST back end and the strategy behind it.
MKAST Custom Alerts
1
MKAST without any doubt has Custom Alerts for all Signals that it is painting on the chart.
One can even choose to receive custom notifications for Take Profit points, Multiple Entry points and
the Stop Loss points.
The signals appear on the chart DURING the candle, not at the end of the candle. Therefore, the
alerts do this as well. These appear during the candle.
Here we can see all of the possible Alerts that can be chosen to be displayed. In total it is 14 different custom alerts, based on what the trader is looking for and how he is trading.
Personally, I have 10-15 coins that I trade the most and for these I have custom notifications, mostly though only the MKAST Buy/Sell and Stop Loss Signals.
To activate Alerts for MKAST,
1) Go to the “ALERT” icon on the top tool bar of your Tradingview.
2) Select “CONDITION” as “—MKAST—“
3) Then choose ONE condition from the list of conditions.
4) On “OPTIONS” you can set how many times it appears, I have “Once per Bar”.
4.1) If you want to make sure that the signal is truly there and not just a condition for a second during the candle, choose “ONCE PER BAR CLOSE”.
5) “Expiration Time” sets the time until the alert expires. PRO users have no expiration for alerts.
6) “Alert Actions” give you a row of choices what happens and how you want to be notified.
7) “Message” is the message that you receive inside the notification.
Thank you, Kong
MKAST V2 (lifetime)PLEASE READ THE ENTIRE POST BEFORE PURCHASING & USING THE MKAST Algorithm. Saves you and me some time in emails and messages. :)
This is the NEW LIFETIME ACCESS Version of the MKAST
The MKAST Buy Sell Algorithm is a very specific strategy, cut down to its roots and made perfect for the volatile crypto market.
Many Algorithms focus only on one aspect, one side, one specific rule.
As you know, this is not how life, the market or anything else works.
MKAST combines many different aspects at the same time, scans multiple other Algorithms and comes to a conclusion based on over 1350 lines of code.
It is based on Divergences, Elliott Waves, Ichimoku, MACD, MACD Histogram, RSI, Stoch, CCI, Momentum, OBV, DIOSC, VWMACD, CMF and multiple EMAs.
Every single aspect is weighted into the decision before giving out an indication.
Most buy/sell Algorithms FAIL because they try to apply the same strategy to every single chart, which
are as individual as humans.
To conquer this problem, MKAST has a wide range of settings and variables which can be easily
modified.
To make it a true strategy, MKAST has as well settings for Take Profit Points, Multiple Entries and Stop
Losses. Everything with an Alert Feature of course.
I know from experience that many people take one Algorithm and are simply too LAZY to add multiple Algorithms to make a rational choice.
The result of that is that they lose money, by following blatantly only one Algorithm.
MKAST has additional 9 Indicators, perfect for the crypto market, which can be turned on and off.
Manual
MKAST Signals Settings
“Show Signals?” - On/Off to show the Buy/Sell Signals.
“Aggressiveness” - Increase to make the signals less aggressive and decrease to make them more aggressive.
“Show Custom Signals?” - On/Off to show custom MKAST Signals as chosen in the settings below.
“Custom Buy/Sell Aggressiveness” - Choose a custom Aggressiveness for each buy and sell signal individually.
“TJ-Index Requirement For Buy/Sell” - If the TJ-Index is below the given number, it will show the signal in grey, this also applies for normal signals. Buy 0 and Sell 15 shows all signals in their original colour again.
“Don’t show signals that don’t meet index requirement?” - Checked, it will completely not show signals which would be “grey” as in the explanation above.
“Change Backgroundcolour if index is at 15 or 0?” - Checked, changes the colour of the chart if the index is at 15 or 0 points
MKAST Panel Settings
“Show Info Panel?” - Shows Info Panel on the chart.
“Move Info Panel UP by %” - Moves Info Panel up/down.
“Move Info Panel Left/Right ” - Moves Info Panel Left/Right.
“Show BitMEX Panel?” - Shows BitMEX Panel on the chart.
“Move BitMEX Panel by % ” - Moves BitMEX Panel up/down.
“Move BitMEX Panel Left/Right” - Moves BitMEX Panel Left/Right. “Signal Source” - Choose source of candle open/close for Equity calculation.
“Leverage Used?” - Select the used Leverage for your strategy and Equity calculation.
“Fees Per Trade in % ” - Deducts these fees after each trade from Equity calculation.
“Round Current Profit Price?” - Rounds the number on the Panel. “Trading Periods ” - Choose a trading Period which will be used to calculate Period Equity.
“Show separations of each Trading Period?” - Show separations on the chart of each Trading Period.
The very new feature on Tradingview and obviously now as well on MKAST are Information Panels.
I have chosen to add an Info Panel and a BitMEX Price Panel into MKAST, to make live and even
backtesting easier.
With only one blink of an eye the user is able to see ALL relevant information, without having to go
through various ways of checking and using other tools.
The Info Panel:
The first row shows the current profit. This is calculated since the signal initiation and the current candle close. Followed by a single number, which represents the current TJ-Index, removing the need of having to add the actual TJ-Index Oscillator on the chart.
The second row shows the current position and its status. This was added on request of many users wanting to know if their position is “about to change” or not. The status shows the users if the position is “endangered” or “okay”.
Followed by the “backtesting tool” already included inside the Panel. No need for complex oscillators with a hard reading for backtesting. With this one and simple panel, you see the Period Equity for the period chosen previously in the settings. This calculates all profits made inside that period and re-sets when the period ends. Right next to it, the Total Equity calculating ALL profits since the beginning of the chart.
Right below, you see the information about the last long and short position which have been open. This helps with the evaluation and documentation of the last trade.
The BitMEX Panel:
A convenient panel which shows all BitMEX contracts and their LIVE prices. The need for opening each chart goes away, the quality and experience of trading increases.
MKAST custom Signals are one of the notorious possibilities for ADVANCED strategies with MKAST.
Users who requested these features and use them frequently are the ones, having already a very unique trading strategy and they use these very custom signals as confluence or for multiple entry trades.
These custom signals and their settings can be mostly ignored by the majority of traders who are using this Algorithm.
The idea behind the grey signals has its roots in the idea of the TJ-Index. The TJ-Index being 15 Algorithms and conditions possible showing a bullish or bearish interpretation. The index counts the Algorithms which are showing a bullish interpretation.
Like that we can make sure that signals are shown in the original colour, are only those who have an additional confluence with the TJ-Index, not letting the user buy, if at least the majority is not bullish, and not letting the user sell, if at least the majority is bearish.
The custom buy and sell aggressiveness lets the user customise the MKAST algorithm even more.
Either the users wants to see how signals are changing on a different (slightly lower or higher) aggressiveness, being able to expect a change on their own settings. OR seeing that some signals of the same sort are a little out of place and is able to move these to a different aggressiveness, increasing the profitability even more.
Needless to say, custom signals are NOT a part of the Info Panel.
MKAST Label & Trendline Settings
“Show Labels?” - On/Off to show Labels above each signal, with the percentage gain or loss, calculated from the last signal to the new signal.
“Show Trendlines?” - On/Off to show automatic Trendlines following Gainzy Lines.
“Lookback Length” - Choose a length that the automatic trendiness use for calculation. Comparable to Aggressiveness.
“Wicks//Bodies” - Change between trendiness connecting from wick to wick or from body to body.
“Black lines// Coloured lines” - Change between simply black lines or changing colour lines.
“Filter Trendlines?” - On/Off to show all trendiness or just resistance decreasing and support increasing ones.
“Limit Extensions Of The Lines?” - This value increases by how much the trendiness are being extended. 0 = endless extension, otherwise 100 = maximum custom extension.MKAST Strategy “Take Profit 1” - On/Off to show TP1 points.
“Take Profit After %” - Set the percentage after which TP1 is active.
“Take Profit 2 ” - On/Off to show TP2 points.
“Take Profit 2 After %” - Set the percentage after which TP1 is
active.
“Take Profit 3” - On/Off to show TP3 points.
“Take Profit 3 After %” - Set the percentage after which TP1 is active.
“Second Entry” - On/Off to show Second Entry points.
“Second Entry After %” - Set the percentage after which Second Entry is active.
“Third Entry” - On/Off to show Third Entry points.
“Third Entry After %” - Set the percentage after which Third Entry is active.
“Stop Loss” - On/Off to show Stop Loss points.
“Stop Loss After %” - Set the percentage after which Stop Loss is active.
MKAST Strategy
To make the life of the MKAST user even easier, I have added all adjustable Take Profit Points, Multiple entry points and Stop Loss points.
I have never seen a sustainable and reliable trading strategy without TPs, Multiple entry and especially without a stop loss. Everything in the usual and fully customisable MKAST style.
Simply choose how many Take Profit points you would like to have and choose the percentage after which you would like to see the Take Profit point appear on the chart and notify you to take profits.
Are you a Trader who likes Multiple Entries? Also no problem with MKAST. Select how many additional entries you would like to have and after how many percent you would like them to appear on the chart and remind you of adding to the position.
What would a Strategy be without a Stop Loss? Same settings apply here as on the TPs and MEs.
All of the settings are able to take fractions of a number as well. This enables users to even use all of the strategy settings for scalping or FX pairs, where high leverage and the smallest of moves are used for trading.
Needless to say, all of these settings work on RENKO and Heikin Ashi as well. These might need adjustment, since the calculation is different, yet there is nothing standing in the way of it anymore.
Crypto Modified Indicators
“Show Divergences?” - On/Off to show Divergences on the Chart based on the data of 10 different Algorithms.
“Show Oversold/bought?” - On/Off to change the colour of the chart in Oversold/bought conditions.
“Oversold/bought value?” - Choose a value for which the chart is Oversold/bought.
“Show Fibonacci Levels?” - On/Off to show automatic Fibonacci Levels.
“Fibonacci Lookback Lenght” - This value states how many candles from right now are taken into account to paint the Fibonacci Levels.
“Fibonacci Custom Period” - Choose a custom Timeframe that should be used to paint the Fibonacci Levels.
“2nd-7th Fibonacci Level” - Enter a value for the Fibonacci Levels you would like to use and see on the chart.
“Plot 1.618 Level?” - On/Off for the Fibonacci extension level.
Crypto Modified Indicators
“Show Bands?” - On/Off to show the TJ-Bands on the chart.
“Bands Length” - Choose a value for the TJ-Bands Lenght
“Show Show EMA 1-3?” - On/Off to show the EMAs 1-3 on the chart.
“EMA Lenght 1-3” - Choose a value for the first to third EMA Lenght
“Show Ichimoku? ” - On/Off to show Ichimoku on the chart.
“Show Tenkin?” - On/Off to show Tenkin on the chart. “Tenkin” - Set the lenght of the Tenkin.
“Show Kijun?” - On/Off to show Kijun on the chart.
“Kijun” - Set the lenght of the Kijun.
“Show Senkou?” - On/Off to show the Senkou on the chart. “Senkou” - Set the lenght of the Senkou.
“Displacement” - Set the value of the Displacement.
“Show Chikou Span?” - On/Off to show the Chikou Span on the chart.
Crypto Custom Indicators
In the picture above, you see the first pair of Crypto Custom Indicators. The oversold and overbought conditions are highlighted.
Bullish and Bearish divergences are also plotted on the chart.
This is personally my favourite combination of Indicators and MKAST settings. It shows nicely
everything one needs to know and makes it easier to decide wether to follow a signal or not.
We here as well a perfect example of the Automatic Fibonacci Lines (Lookback 50, Timeframe 1D).
It shows all significant levels, which we can see being respected.
Orange = 23.6%, Green = 38.2%, Red = 50%, Yellow = 61.8%, Blue = 78.6%, White = 0%;100%
In this picture above, we observe the perfect ensemble of MKAST and an EMA strategy, especially modified for crypto markets.
Here, as by default, we have the EMAs at 21, 90 and 200. These have shown to be very significant moving support and resistance points in the crypto market.
In this picture above, I lowered the timeframe to show the highly significant levels of the Ichimoku. It has not the “usual values”. These here have been modified for the volatile crypto market and set as default.
An incredibly powerful tool for anyone who is ready to step up their trading game. It is a huge part of the MKAST back end and the strategy behind it.
MKAST Custom Alerts
1
MKAST without any doubt has Custom Alerts for all Signals that it is painting on the chart.
One can even choose to receive custom notifications for Take Profit points, Multiple Entry points and
the Stop Loss points.
The signals appear on the chart DURING the candle, not at the end of the candle. Therefore, the
alerts do this as well. These appear during the candle.
Here we can see all of the possible Alerts that can be chosen to be displayed. In total it is 14 different custom alerts, based on what the trader is looking for and how he is trading.
Personally, I have 10-15 coins that I trade the most and for these I have custom notifications, mostly though only the MKAST Buy/Sell and Stop Loss Signals.
To activate Alerts for MKAST,
1) Go to the “ALERT” icon on the top tool bar of your Tradingview.
2) Select “CONDITION” as “—MKAST—“
3) Then choose ONE condition from the list of conditions.
4) On “OPTIONS” you can set how many times it appears, I have “Once per Bar”.
4.1) If you want to make sure that the signal is truly there and not just a condition for a second during the candle, choose “ONCE PER BAR CLOSE”.
5) “Expiration Time” sets the time until the alert expires. PRO users have no expiration for alerts.
6) “Alert Actions” give you a row of choices what happens and how you want to be notified.
7) “Message” is the message that you receive inside the notification.
Thank you, Kong
Full Range Trading Strategy with DCA - Crypto, Forex, Stocks
Introduction
This is a Pine 4 range trading strategy. It has a twin study with several alerts. The design intent is to produce a commercial grade signal generator that can be adapted to any symbol and interval. Ideally, the script is reliable enough to be the basis of an automated trading system web-hooked to a server with API access to crypto, forex and stock brokerages. The strategy can be run in three different modes: long, short and bidirectional.
As a range trading strategy, the behavior of the script is to buy on weakness and sell on strength. As such trade orders are placed in a counter direction to price pressure. What you will see on the chart is a short position on peaks and a long position on valleys. Just to be clear, the range as well as trends are merely illusions as the chart only receives prices. However, this script attempts to calculate pivot points from the price stream. Rising pivots are shorts and falling pivots are longs. I refer to pivots as a vertex in this script which adds structural components to the chart formation. When trading in “Ping Pong” mode long and short positions are intermingled continuously as long as there exists a detectable vertex. Unfortunately, this can work against your backtest profitability on long duration trends where prices continue in a single direction without pullback. I have designed various features in the script to compensate for this event. A well configured script should perform in a range bound market and minimize losses in a trend. I also have a trend following version of this script for those not interested in trading the range. Please be aware these are two types of traders. You should know who you are.
This script employs a DCA feature which enables users to experiment with loss recovery techniques. This is an advanced feature which can increase the order size on new trades in response to stopped out or winning streak trades. The script keeps track of debt incurred from losing trades. When the debt is recovered the order size returns to the base amount specified in the TV properties tab. The inputs for this feature include a limiter to prevent your account from depleting capital during runaway markets. This implementation of DCA does not use pyramid levels. Only the order size on subsequent new trades are affected. Pyramids on the other hand increase the size of open positions. If you are interested in seeing pyramids in action please see the trend version of this script which features both DCA and pyramids. While DCA is a popular feature in crypto trading, it can make you a “bag” holder if your not careful. In other markets, especially margin trading, you’ll need a well funded account and much trading experience to manage this feature safely.
Consecutive loss limit can be set to report a breach of the threshold value. Every stop hit beyond this limit will be reported on a version 4 label above the bar where the stop is hit. Use the location of the labels along with the summary report tally to improve the adaptability of system. Don’t simply fit the chart. A good trading system should adapt to ever changing market conditions. On the study version the consecutive loss limit can be used to halt live trading on the broker side (managed manually).
Design
This script uses twelve indicators on a single time frame. The original trading algorithms are a port from a much larger program on another trading platform. I’ve converted some of the statistical functions to use standard indicators available on TradingView. The setups make heavy use of the Hull Moving Average in conjunction with EMAs that form the Bill Williams Alligator as described in his book “New Trading Dimensions” Chapter 3. Lag between the Hull and the EMAs form the basis of the entry and exit points. The vertices are calculated using one of five featured indicators. Each indicator is actually a composite of calculations which produce a distinct mean. This mathematical distinction enables the script to be useful on various instruments which belong to entirely different markets. In other words, at least one of these indicators should be able generate pivots on an arbitrarily selected instrument. Try each one to find the best fit.
The entire script is around 1800 lines of Pine code which is the maximum incidental size given the TradingView limits: local scopes, run-time duration and compile time. I’ve been working on this script for nearly two years and have tested it on various instruments stocks, forex and crypto. It performs well on higher liquidity markets that have at least a year of historical data. Although the script can be implemented on any interval, it has been optimized for small time frames down to 5 minutes. The 10 minute BTC/USD produces around 500 trades in 2 ½ months. The 1 hour BTC/USD produces around 1300 trades in 1 ½ years. Originally, this script contained both range trading and trend following logic but had to be broken into separate scripts due to the aforementioned limitations.
Inputs to the script use cone centric measurements in effort to avoid exposing adjustments to the various internal indicators. The goal was to keep the inputs relevant to the actual trade entry and exit locations as opposed to a series of MA input values and the like. As a result the strategy exposes over 50 inputs grouped into long or short sections. Inputs are available for the usual minimum profit and stop-loss as well as safeguards, trade frequency, DCA, modes, presets, reports and lots of calibrations. The inputs are numerous, I’m aware. Unfortunately, at this time, TradingView does not offer any other method to get data in the script. The usual initialization files such as cnf, cfg, ini, json and xml files are currently unsupported.
Example configurations for various instruments along with a detailed PDF user manual is available.
Indicator Repainting And Anomalies
Indicator repainting is an industry wide problem which mainly occurs when you mix backtest data with real-time data. It doesn't matter which platform you use some form of this condition will manifest itself on your chart over time. The critical aspect being whether live trades on your broker’s account continue to match your TradingView study.
Tackling this repainting issue has been a major project goal of this script. Based on my experience with Pine, most of the problems stem from TradingView’s implementation of multiple interval access. Whereas most platform provide a separate bar series for each interval requested, the Pine language interleaves higher time frames with the primary chart interval. The problem is exacerbated by allowing a look-ahead parameter to the Security function. The goal of my repaint prevention is simply to ensure that my signal trading bias remains consistent between the strategy, study and broker. That being said this is what I’ve done address this issue in this script:
1. This script uses only 1 time frame. The chart interval.
2. Every entry and exit condition is evaluated on closed bars only.
3. No security functions are called to avoid a look-ahead possibility.
4. Every contributing factor specified in the TradingView wiki regarding this issue has been addressed.
5. I’ve run a 10 minute chart live for a week and compared it to the same chart periodically reloaded. The two charts were highly correlated with no instances of completely opposite real-time signals.
The study does indeed bring up the TV warning dialog. The only reason for this is because the script uses an EMA indicator which according to TradingView is due to “peculiarities of the algorithm”.
One issue that comes up when comparing the strategy with the study is that the strategy trades show on the chart one bar later than the study. This problem is due to the fact that “strategy.entry()” and “strategy_exit()” do not execute on the same bar called. The study, on the other hand, has no such limitation since there are no position routines.
Please be aware that the data source matters. Cryptocurrency has no central tick repository so each exchange supplies TradingView its feed. Even though it is the same symbol the quality of the data and subsequently the bars that are supplied to the chart varies with the exchange. This script will absolutely produce different results on different data feeds of the same symbol. Be sure to backtest this script on the same data you intend to receive alerts for. Any example settings I share with you will always have the exchange name used to generate the test results.
Usage
The following steps provide a very brief set of instructions that will get you started but will most certainly not produce the best backtest. A trading system that you are willing to risk your hard earned capital will require a well crafted configuration that involves time, expertise and clearly defined goals. As previously mentioned, I have several example configs that I use for my own trading that I can share with you along with a PDF which describes each input in detail. To get hands on experience in setting up your own symbol from scratch please follow the steps below.
The input dialog box contains over 50 inputs separated into five sections. Each section is identified as such with a makeshift separator input. There are three main areas that must to be configured: long side, short side and settings that apply to both. The rest of the inputs apply to DCA, reporting and calibrations. The following steps address these three main areas only. You will need to get your backtest in the black before moving on to the more advanced features.
Step 1. Setup the Base currency and order size in the properties tab.
Step 2. Select the calculation presets in the Instrument Type field.
Step 3. Select “No Trade” in the Trading Mode field.
Step 4. Select the Histogram indicator from Section 2. You will be experimenting with different ones so it doesn’t matter which one you try first.
Step 5. Turn on Show Markers in Section 2.
Step 6. Go to the chart and checkout where the markers show up. Blue is up and red is down. Long trades show up along the red markers and short trades on the blue.
Step 7. Make adjustments to “Base To Vertex” and “Vertex To Base” net change and roc in Section 3. Use these fields to move the markers to where you want trades to be.
Step 8. Try a different indicator from Section 2 and repeat Step 7 until you find the best match for this instrument on this interval. This step is complete when the Vertex settings and indicator combination produce the most favorable results.
Step 9. Go to Section 3 and enable “Apply Red Base To Base Margin”.
Step 10. Go to Section 4 and enable “Apply Blue Base To Base Margin”.
Step 11. Go to Section 2 and adjust “Minimum Base To Base Blue” and “Minimum Base To Base Red”. Observe the chart and note where the markers move relative to each other. Markers further apart will produce less trades but will reduce cutoffs in “Ping Pong” mode.
Step 12. Return to Section 3 and 4 and turn off “Base To Base Margin” which was enabled in steps 9 and 10.
Step 13. Turn off Show Markers in Section 2.
Step 14. Put in your Minimum Profit and Stop Loss in the first section. This is in pips or currency basis points (chart right side scale). Percentage is not currently supported. This is a fixed value minimum profit and stop loss. Also note that the profit is taken as a conditional exit on a market order not a fixed limit. The actual profit taken will almost always be greater than the amount specified. The stop loss, on the other hand, is indeed a hard number which is executed by the TradingView broker simulator when the threshold is breached. On the study version, the stop is executed at the close of the bar.
Step 15. Return to step 3 and select a Trading Mode (Long, Short, BiDir, Ping Pong). If you are planning to trade bidirectionally its best to configure long first then short. Combine them with “BiDir” or “Ping Pong” after setting up both sides of the trade individually. The difference between “BiDir” and “Ping Pong” is that “Ping Pong” uses position reversal and can cut off opposing trades less than the specified minimum profit. As a result “Ping Pong” mode produces the greatest number of trades.
Step 16. Take a look at the chart. Trades should be showing along the markers plotted earlier.
Step 17. Make adjustments to the Vertex fields in Section 2 until the TradingView performance report is showing a profit. This includes the “Minimum Base To Base” fields. If a profit cannot be achieved move on to Step 18.
Step 18. Improve the backtest profitability by adjusting the “Long Entry Net Change” and “Long Entry ROC” in Section 3.
Step 19. Improve the backtest profitability by adjusting the “Short Entry Net Change” and “Short Entry ROC” in Section 4.
Step 20. Improve the backtest profitability by adjusting the “Sparse Long Delta” in Section 3.
Step 21. Improve the backtest profitability by adjusting the “Chase Long Delta” in Section 3.
Step 22. Improve the backtest profitability by adjusting the “Long Adherence Delta” in Section 3. This field requires the “Adhere to Rising Trend” checkbox to be enabled.
Step 23. Try each checkbox in Section 3 and see if it improves the backtest profitability. The “Caution Lackluster Longs” checkbox only works when “Long Caution Mode” is enabled.
Step 24. Improve the backtest profitability by adjusting the “Sparse Short Delta” in Section 4.
Step 25. Improve the backtest profitability by adjusting the “Chase Short Delta” in Section 4.
Step 26. Improve the backtest profitability by adjusting the “Short Adherence Delta” in Section 4. This field requires the “Adhere to Falling Trend” checkbox to be enabled.
Step 27. Try each checkbox in Section 4 and see if it improves the backtest profitability. The “Caution Lackluster Shorts” checkbox only works when “Short Caution Mode” is enabled.
Step 28. Enable the reporting conditions in Section 5. Look for long runs of consecutive losses or high debt sequences. These are indications that your trading system cannot withstand sudden changes in market sentiment.
Step 29. Examine the chart and see that trades are being placed in accordance with your desired trading goals. This is an important step. If your desired model requires multiple trades per day then you should be seeing hundreds of trades on the chart. Alternatively, you may be looking to trade fewer steep peaks and deep valleys in which case you should see trades at major turning points. Don’t simply settle for what the backtest serves you. Work your configuration until the system aligns with your desired model. Try changing indicators and even intervals if you cannot reach your simulation goals. Generally speaking, the histogram and Candle indicators produce the most trades. The Macro indicator captures the tallest peaks and valleys.
Step 30. Apply the backtest settings to the study version and perform forward testing.
This script is open for beta testing. After successful beta test it will become a commercial application available by subscription only. I’ve invested quite a lot of time and effort into making this the best possible signal generator for all of the instruments I intend to trade. I certainly welcome any suggestions for improvements. Thank you all in advance.
Algorithm Builder - Single Trend+ (Plug&Play)Hello traders
I. SCRIPTS ACCESS AND TRIALS
1. For the trial request access, they have to be done through my website .
2. My website URL is in this script signature at the very bottom (you'll have to scroll down a bit and going past the long description) and in my profile status available here : Daveatt
Due to the new scripts publishing house rules, I won't mention the URL here directly. As I value my partnership with TradingView very much, I prefer showing you the way for finding them :)
3. You may also contact me directly for more information
II. Algorithm Builder - Single Trend+ Plug&Play
2.1 Concept
That script is an upgrade of the Single Trend:
The Algorithm Builder - Single Trend+ (Plug & Play) is made to detect the convergence of many unrelated indicators, and give a BUY or SELL signal whenever all the selected sub-indicators are converging in the same direction.
The Single Trend+ (Plug & Play) gives one single entry per identified trend - unlike the Multiple Trends editions (also available on my scripts page) which may give more than 1 entry per trend.
The traders select the sub-indicators they want, and see in real-time the BUY and SELL triangles being updated.
III. Plug & Play
Hope you're ready to be impressed. Because, what I'm about to introduce, is my best-seller feature - and available across many of my indicators.
In TradingView, there is a feature called "Indicator on Indicator" meaning you can use an external indicator as a data source for another indicator.
I'm using that feature to connect any external indicator to our Algorithm Builder Single Trend+ Plug & Play (hence the plug and play name).
Let's assume you have your RSI divergence indicator - which is not part of the Algorithm Builder - but noticed that the convergence of an RSI divergence and a MACD gives strong signals.
I mentioned an RSI divergence, but you may connect any oscillator (MACD, On balance volume, stochastic RSI, True Strenght index, and many more..) or non-oscillator (divergence, trendline break, higher highs/lower lows, candlesticks pattern, price action, harmonic patterns, ...) indicators.
Any indicator that displays visual signals are eligible for this feature .... in other words.... all possible indicators. You're welcome :)
THE SKY IS (or more likely your imagination) is the limit :)
Fear no more. The Plug&Play technology allows you to connect it and use it in the convergence/confluence calculations.
Hence, whenever the MACD and RSI divergence will be in the same direction for the first time, you'll get a signal. For the first time only because this is a Single trend edition - you may enter multiple times using our Algorithm Builders - Multiple Trends editions.
To connect your external indicator to ours, we're using a native TradingView feature, which is not available for all users.
It depends on your TradingView subscription plan ( More info here )
If you intend to use our Algorithm Plug&Play indicator, and/or our Backtest Plug&Play suites, then you must upgrade your TradingView account to enjoy those features.
We value our relationship with our customers seriously, and that's why we're warning you that a compatible TradingView account type is required - at least PRO+ or PREMIUM to add more than 1 Plug&Play indicator per account.
We go in-depth on our website why the Plug&Play is an untapped opportunity for many traders out there - URL available on my profile status and signature
IV. Why the Algorithm Builder Single Trend+ (Plug&Play) may help you
I worked with many traders during my career, and their feedback about trading is often pretty similar.
They all tried a lot of complicated indicators, losing their capital, and finally getting back to the basics (even to the basic indicators if I might say)
The art is finding a good combination of indicators and setting strict money/risk management rules.
Easy in concept, but more than 90+% of traders lose money on the markets... which teach us that trading is not only about drawing trendlines, or using cool indicators but finding ways to ease our psychology while trading.
4.1 The Algorithm Builder trading framework
The sub-indicators (full list on our website) weren't chosen randomly. They're based on a trading method we've developed over the last 6 years - while working with traders and other trading quants.
The Algo Builders are made to detect a convergence - and as such, will give a signal once a trend has been identified.
They're not made to detect reversal but have been designed to give a signal when all sub-indicators are either ALL bullish (green) or ALL bearish (red).
We provide a framework based on indicators we selected because they:
1. make sense to be used altogether
2. work on asset classes like INDEX, CRYPTO, STOCK OPTIONS, FOREX, COMMODITIES
3. it may expand your knowledge about what detecting a convergence with pre-selected indicator really means
4.2 Supports and Resistances
The indicator displays the main algorithmic supports and resistances according to our trading method.
I think they're relevant for all asset classes, but you're absolutely free to use any different supports/resistances logic if you want to.
I'm not against it because I know that pivots, Fibonacci levels, etc. may work very well also.
4.3 Choose your favorite risk management algorithm
1/ Pre-defined Algo S/R method using:
- a supertrend of the stop-loss
- the nearest algorithmic resistances for the take profit levels.
2/ Define your own Stop-loss and Take-profits level in real-time
Stop-Loss Management
For what's following, let's assume that 2 is the stop-loss value you inserted in the indicator, and the Algorithm Builder gives a BUY signal.
This is NOT a recommendation at all, only an example to explain how this feature works.
- %Trailing: The Stop-Loss starts 2% away from the entry price - and will move up (because we're on a BUY trade as per our example) every time your trade will gain 2% profit
- Percentage: The Stop-Loss stays static 2% away from the entry price. There is no trailing here
- TP Trailing: This is a very awesome feature. The stop-loss is set 2% away when the trades start.
When the TP1 is hit, the stop-loss will be moved to the Entry price (also called breakeven).
When the TP2 is hit, the SL is moved to the previous TP1 position
- Fixed: Set the Stop-Loss at a fixed position (value should be in currency/units)
Take Profits Management
You can manage up to 2 take profit levels defined as a percentage or price value.
The expected input is in percentage value (for instance, setting the % target of TP1 to 2% will set the TP1 level 2% away from the entry price
4.4 Built-in Trade Manager
This is very likely the most loved utility script that we shared on TradingView.
It's included in your Algorithm Builder - Single Trend+, and will certainly help you immensely to analyze your charts and your trades.
We made sure that all the graphical elements on the chart will be updated in real-time whenever our user change anything on the indicator configuration.
You'll also be able to change the Trade Manager labels positions as you wish :)
4.5 Built-in Risk-to-Reward Panel
The good stuff doesn't stop here.
You'll notice that this sometimes green (when in a LONG), sometimes red (when in a SHORT) panel at the right of your chart.
It displays for the selected trading algorithmic (see 2.3.2 above), a ton of useful real-time analytics.
- Entry Price: the price when the Algorithm Builder will give a signal.
- The Trade PnL in percentage.
- Entry Stop Loss: Distance (in currency/units) between the selected stop-loss algorithm (percent, trailing, TP trailing, etc.) and the entry price.
- Entry TP1: Distance (in currency/units) between the entry price and the first take profit
- Entry TP2: Distance (in currency/units) between the entry price and the second take profit
- Risk/Reward TP1: Using the Stop-loss distance at entry, and Take Profit 1 at entry to compute the risk-to-reward ratio.
- Risk/Reward TP2: Using the Stop-loss distance at entry, and Take Profit 2 at entry to compute the risk-to-reward ratio.
For more details, please check the guides section of my website. Links are in my signature and profile status.
4.6Hard Exits
Our trading method is known for the hard exits, also called invalidation.
The Single Trend+ includes a hard exit based on a MACD - settings are flexible and you may update them.
Having a stop-loss protecting your trade is a best practice - Protecting your stop-loss also from getting hit is incredible.
We prefer invalidate a few positions, even if sometimes we don't want to. Rather than the market hard exiting on us, and leaving with our hard-working money.
4.7 Alerts
Alerts are enabled for:
- BUY/SELL triangles signals
- Trade Manager (SL, TP1, TP2)
- Hard Exits
V. Pain points that we're trying to solve with our Algorithm Builders
Issue #1 There are many informations / indicators / strategies / backtests / noise. Finding the right ones is not a simple task.
Solution #1 A reliable system that removes the external noise is much needed in trading to stay "in the game".
Issue #2 Trading could be quite stressful - The majority doesn't lose in trading because technical analysis is hard, but because managing our psychology is one of the hardest things a human can do.
Solution #2 Some ways to reduce the "trading stress" could be: getting better quality signals and trading like a "machine". Forgetting about Twitter and trusting the system you designed.
Issue #3 Trading without strict rules and only based on what we feel, or what we think the market should do is the fastest way to kiss our money goodbye.
Only 1 indicator generally is not enough. Traders generally use a combination of several indicators but they're monitoring them individually.
It's normal then to feel exhausted at the end of the day ^^ (to say the least)... and exhaustion leads to mistakes which leads to..... (I'm sure you got it) ... capital loss.
Solution #3 As a trader, I needed a trading framework and a method. I offer our trading method but they're plenty others out there. We cannot claim obviously it's the best ever ....but let's say we're using those exact same
scripts ourselves for our trading. And this what we've been recommending our clients to trade with for the past years. Also, having a tool detecting the convergence of several indicators and giving 1 unique signal
for BUY/SELL position will save you a lot of time/energy, and perhaps might help you out getting better trading performance.
VI. Resolving a complex puzzle and having fun in the process
Trading has to stay a passion and not (only be) a source of intense stress.
The most successful traders I know are "trading geeks" - literally always looking for optimizing, searching for the best possible entries, setups, indicators, tools, etc.
For them, it's not even about the money anymore, but only about beating their previous performance.
Why are they doing this? Because it's fun
Might appears as a bold statement, but I guarantee that looking for setups is fun.
One of our users even told us, that it's like playing with "Legos" and we couldn't possibly agree more.
VII. Designing a system that "makes sense"
Another bold statement now. Brace yourselves ladies and gentlemen
The Algorithm Builders allow to design trading systems quickly. What could takes days/weeks/months to find out... might be now within your reach in less than a few hours.
With a bit of practice, less than an hour might be enough per asset/timeframe to find a system that makes sense to you and adapted to your trading capital and psychology.
Assuming our users read our guides and are fully committed to learning a new way of trading - then we do guarantee you'll be able to design kick-ass trading systems that make sense.
"Making sense" doesn't mean at all it's guaranteed to win, it means you're the one defining the convergence of indicators, using your Algorithm Builder, and observe that most of the time - whenever there is a BUY signal, the candlesticks are going upwards - whenever there is a SELL signal, it's going downwards.
This is a necessary step to make real progress from a trading analyst perspective - and hopefully could lead to profits.
VII. Algorithm Builder versus the main trader enemy(=psychology)
This indicator has the goal to help solving one of the MAIN issues encountered by traders.
Most of traders realize, they can't perform with only 1 indicator (or 1 price pattern or 1 price action) and need a combination of multiple indicators before getting in a trade.
Far from being a magic pill, if it could at least reduce the stress you have while trading, then we'll consider we made a great job - it's a technical "useless noise remover", and needs to be followed strictly.
Such trust in a trading system can only be built by testing your Algorithm Builder configuration on either:
1. a demo account
2. or a live account with small bids. And then, increasing progressively the bids if your capital increases progressively.
Though, you should still use your common sense. (for instance: if we get a BUY signal right on a big timeframe resistance we're hitting for the first time).
I'm aware this is a new way of trading but for many, and while we cannot foresee the future, neither predict performance, we believe it might save you a lot of time to find good signals.
My maximum level of happiness will be reached the day when our users will contact me and showing me setups being mine.
I'm sure that even I can learn from my users and, we can all learn from each other Algorithm Builder configuration
VIII. What is a wrong or bad configuration?
Simply put. If you see that most of your signals react such as described below:
1. a buy triangle predicts, most of the time an upwards move
2. a sell triangle predicts, most of the time a downwards move
3. you estimated yourself the stop-loss needed to give enough room for your trades.
4. take profits based on algorithmic support and resistances or your own take profit method.
So what's a good Algorithm Builder configuration? A configuration you're happy with and makes sense.
A better Algorithm Builder setup is one used in demo or a live account w/ small bids for a few weeks, and you're consistent in your trading performance.
If you have any doubt or question, please hit me up directly or ask in the comments section of this script.
I'll never claim I have the best trading methodology or the best indicators. You only will be the judge, and I'll appreciate all the questions and feedback you're sending my way.
They help me a ton to develop indicators based on all the requests I received.
Kind regards,
Dave